Use a trace to find out if the wall ended and then stop the movment with the Stop Movement Immediatly Node. You probably also need to stop what caused the movement.
Note:
It would be “better” (less resource hungry) to use a sphere or box collider to find out if the wall ended. But a collider wouldn’t be as precise as a trace.