Ninja Character - Dynamic gravity for characters & objects

Hello, I’m testing the 8 Way Movement again.
How do I solve the Axis problem on walls?
Ref:
GIF 05.12.2022 12-58-40