I had/have the same issue when using UMG Widget and enabled mouse input when a widget comes up, when closing the widget the mouse becomes inactive in game and have to click inside the game first before mouse input inside the game starts working again.
Are you using by any chance 3rd Person view ?