Changing gravity of player in first person causes gimbal lock

Hi, I’m working on a game where the gravity of the player character can change to walk on walls. I found a plugin that takes care of all of the physics stuff, so that’s working properly. However, I run into gimbal lock problems with the camera when I try to walk on walls.

I found other threads with similar problems that were fixed using Add Local Rotation or quaternions, but I created my project in UE5 with the Enhanced Input system, which uses a different method to do camera inputs, and I’m not sure how to adapt those solutions to my project.

Can my issue be fixed using blueprints?

Did you already fixed it? Have the same problem.