If you think there’s malware on your PC, you should run a quick scan using the Microsoft Defender. Check and Clean for Virus or Malware on PC Follow the steps below to run the Hardware Troubleshooter on Windows: Windows don’t provide a dedicated troubleshooter for your PC, but you can run the hardware troubleshooter on Windows to see if there’s an issue with the hardware. Run the Hardware Troubleshooter on Windows
If that doesn’t work, you’ll have to disable the Realtek HD Audio Manager from launching at startup on your PC.
You might try re-installing or updating Realtek HD Audio Manager drivers. Realtek’s HD Audio Manager drivers are known to interfere with the mouse drivers.