I'm sorry you're dealing with such a frustrating problem, Stas Fesko.
You have already carried out extensive troubleshooting, including testing several aspects and ruling out many of the usual causes. Most of what I would normally recommend has therefore already been covered, so there may not be much more we can offer here. Still, the following tests may still be worth trying:
1 - Disconnect every nonessential USB device if you haven't
The device causing the USB recovery does not necessarily have to be the mouse itself. Disconnect external drives, controllers, webcams, headsets/DACs, Bluetooth adapters, USB hubs, printers, etc. Leave only a basic keyboard and the mouse connected and use the PC long enough to see whether the freeze happens again.
2 - Try a clean boot
- Because you mentioned that the problem is much less frequent after a clean restart.
- Follow this guide on How to perform a clean boot in Windows - Microsoft Support
- Press Windows + R > type
msconfig> press Enter - Go to Services tab > Check Hide all Microsoft services > Disable all
- Go to Startup > it will open Task Manager > Disable all items > Restart your PC.
If the problem is gone, it's likely that one of the disabled was the cause. You may need to manually enable them half-by-half to identify the offender, then consider removing or disabling it. This should help you identify the service or application affecting the mouse, which you can then disable or remove.
Disclaimer: A "clean boot" starts Windows with a minimal set of drivers and startup programs. It helps to determine whether a background service is interfering with your game or program and to isolate the cause of a problem. They might look complicated at first glance but can help you get back on track. To avoid any trouble, please follow them in order and step-by-step.
3 - Reinstallation repair (keeping files and apps)
- Use built-in repair option
- Open Settings > System > Recovery > Fix problems using Windows Update
- Click Reinstall now > follow the onscreen instructions to reinstall Windows.
- If that fails, perform an in-place upgrade:
- Refer to Reinstall Windows with the installation media - Microsoft Support
- Navigate to the bottom of the page and check under In-place Upgrade > follow the instructions.
- Download the ISO > Mount it and run
setup.exeas Administrator > select Keeping files and apps. - You can also check out this guidance: How to run In-place upgrade in Windows 11 - Microsoft Q&A
Disclaimer: Both Windows reinstallation and in-place upgrade will refresh your Windows files and operating system without removing files or applications. That being said, we always recommend that if you have important data, you should back it up first before making large system changes.
If the problem survives a repair installation, there may not be any other meaningful user-side software fixes left to try. A clean installation would be the final move, but it will erase everything on the system, so make sure you have a complete backup first.