Apply different textures to wall corners?

This here is a wall corner I have in my blender model:

My idea is to give all the lateral edges of the walls (left and right, NOT top and bottom) a different texture that would be bigger blocks. I need this texture to seamlessly tile so it cannot be baked. Therefore I need some logic that drives the texture to the corners. This corner texture will not be regular blocks of stone. Some will be bigger than others. I have seen videogames do it. Of course maybe they had a modular set of objects that had self contained UVs in the 0-1 space, so they could bake the texture. Of course that would be easy, if only my meshes were not modular but rather whole pieces. I guess I could redo everything with modular pieces with baked textures, I don’t know really.

Look at this example from Assassins Creed:
image

Another example from The Witcher, in this case for the arch of the door:
image

Another example from Kingdom Come Deliverance. I especially would like to obtain a similar result to them in terms of edge and archway textures:
image
image
image

edit: i was thinking, maybe an alpha texture of some “edge stones” with the background of the other texture of the regular wall?