Do you happen to have a controller plugged in? Even if you’re not set to controller input you can still use it to move around and it can mess with the camera. I’m not sure why that would override your mouse button though.

Also just in case, check your keybinds as well to make sure it didn’t get overwritten (I’m not sure if mouse can be overwritten).