What isn't working about the mechanic? It is possible that your idea of broken is just a broader aspect of the design space. (But understand why the bug is happening, you don't want to accidentally fix it and remove a hard to get back feature.)
The issue with the mechanic is that it completely breaks another mechanic (the wall-jump) and when you want to shift the gravity direction from a Y axis to an X one (eg: UP to LEFT) the physics entirely break and softlock you in the air
I've troubleshooted it to the best I can but it's an issue bigger than I can solve in this jam timeframe