Hi, I'm John! I will help you with this.
To help narrow down the issue:
- Is this a USB, wireless, or Bluetooth mouse?
- Does the keyboard continue working when the mouse stops?
- Does the mouse stop completely, or does the pointer freeze on the screen?
- Have there been any recent Windows updates, driver updates, or software installations before this started?
In the meantime, if you haven’t already:
- Press Windows + X > Device Manager.
- Expand Mice and other pointing devices.
- Right-click your mouse and select Uninstall device.
- Restart the PC. Windows should automatically reinstall the driver.
Also check power management:
- In Device Manager, expand Universal Serial Bus controllers.
- Open each USB Root Hub entry.
- Go to the Power Management tab.
- Uncheck Allow the computer to turn off this device to save power.
If it is a wireless or Bluetooth mouse, let me know the make and model, and whether the issue occurs on a different USB port or with fresh batteries.