4. Disable USB Power Management: Prevent Windows from disabling USB devices during sleep mode by following these steps:
- Press Windows+X and select "Device Manager."
- Expand "Universal Serial Bus controllers."
- Right-click on each USB controller, go to "Properties."
- In the "Power Management" tab, uncheck "Allow the computer to turn off this device to save power."