I was thinking, rather than doing line traces, what about using the wall to constrain coordinates? So, once they have chosen to hold the wall, you can run a modified control system in the character that only allows side to side movement along a plane parallel to the wall.
IE, the player capsule is always aligned with the wall normal, which I think should work around corners…