Legs crossing during 8-WayMovement animation

Is there a way to fix the legs clipping into each other? It happens between Right and BackwardsRight, also ForwardLeft and Left movemnts. It’s because of the way the body twist from shifting from a forward to a backwards movement.

It’s for a top/down shooter where WASD is the movement and the Character is facing the curser, So the legs crossing can be seen at some rotation. It doesn’t look too bad, and probably wouldn’t bother most people, but it hurts my eyes when I look at it directly.