I had something similar happen to me when I upgraded to Windows 10, except my mouse would die and come back within a few seconds. Turns out there was an incompatibility between a Realtek program that gets installed with their HD Audio called FMAPP.exe . I killed this program and the problem was solved. No more dying or lag. I also made sure to remove this as a startup app under msconfig.
If it's a wireless mouse, try using a wired USB mouse to see if you have the same problem. If it's a touchpad/wireless, try downloading the latest drivers from the manufacturer's website. Also, is it just the mouse, or are other peripheral devices dying as well?
If all else fails, become a power user and learn all the bajillions of keyboard commands so you can impress your friends with superior knowledge and wizardry of how to control a computer without a mouse.