Long shot maybe it will help. My “fine” MSI motherboard didn’t come with a fan for the chipset and an inadequate heatsink. Consequently, it kept overheating while playing games but not with normal windows use. So I opened the case and pointed a big 12 inch fan into the case and the problem went away. Also, after one crash I turned off the power and put my hand on the heatsink and felt that it was too hot to touch which for me is about 65C.
The point is maybe you have something overheating during more intensive gameplay.
Have you tried a different mouse? Or to build on what Edd suggested, install a different driver for the mouse (say the generic mouse driver instead of Logitech drivers).
Or if you have a USB mouse, tried using the PS/2 adapter to use a different port. Is your keyboard USB as well? Have you tried updating your mainboard BIOS?