The default bind for changing the camera tilt is CTRL+up and CTRL+down. It could be that if you're holding CTRL to activate your second hotbar while you're still moving, you're activating this function without intention.

You can also play around with moving and resizing some of the HUD layout elements to have them "less in the way".