I'm not sure if you're having the same problem, but I had something similar recently. My mouse(Logitech as well, G400s) started cutting out on flick shots and then if I didn't move it for a few seconds it would suddenly vomit out all the inputs since it cut out and proceed to work again. After that, the mouse started just cutting out until I pulled out the cord for a few seconds and put it back in again, which eventually turned into not working altogether until I rebooted. If I left it long enough without rebooting(a few minutes), I would get blue screens saying "BUGCODE_USB_DRIVER".
However, I could plug in other mice and they would work absolutely fine and none of my other USB devices would malfunction, let alone cause a stop error. I also had this problem on all of the USB ports, both front panel and motherboard. The mouse would however exhibit the exact same behaviour on different computers. My guess was that the cable had broken internally at the point where it enters the mouse because I could see the wire through the sleeve of the cord, but I didn't really bother to investigate further.