UE4 mouse key not respond

My problem is that my game runs perfectly in the editor, but when I package the project and play the version without editor. Sometimes the mouse will suddenly lose control, that is, the input does not respond, whether it is left click or right click.
The time when the mouse input does not respond is generally half a second to two seconds. If any control is stopped when the response is lost, it is the axial input of the keyboard and mouse and the mouse, and then the button input of the mouse does not respond, the problem will continue. However, if you continue to input on the keyboard and mouse axis after the mouse loses its response, the time for the mouse to lose its input response is about half a second to two seconds.