Mouse overlay causing problems with movement + pause menu

The game is pretty much unplayable for me as the game keeps registering my mouse and keyboard rather than my controller, meaning whenever I sprint my character goes in the direction of my mouse and the UI keeps shifting between M&K + controller. For some reason I also cannot pause at all, it opens for 1 frame then closes.