I consider that you could use usb suspend with reigistry or deploy the script to disable it.
Usb power saving settings windows 10.
Please refer to the link below.
Click change advanced power settings then scroll down to usb settings and click the little plus next to usb selective suspend setting to expand the options.
More windows 10 resources.
To change your usb port s power settings you need to open the device manager.
On the other hand if your windows 10 pc is acting a little sluggish lately these power settings tweaks could perk up your computer s performance without needing to spend money for new hardware.
Prevent windows 7 from enabling power saving on usb 3 0 hub.
Repeat steps 3 and 4 for all of the usb root hubs on the computer.
While this guide focuses on windows 10 usb selective suspend has been around for a long time and you can use the same steps on machines running windows 8 1 and windows 7.
According to your description i find a similar issue for windows 7 but it is suit for windows 10.
In windows 10 you do that by right clicking start and selecting device manager.
If you want usb ports to keep supplying power in sleep mode just uncheck allow the computer to turn off this device to save power.
Click the power management tab.
The usb universal serial bus ports on your computer are a powerful interface that allows you to connect to a wide range of peripheral devices instantly and without rebooting your system.
Set both the on battery and plugged in settings to disabled then click ok to apply changes.
Many usb devices draw power directly from the usb hub as opposed to drawing power from an electrical outlet.
In the power options dialog box expand usb settings and then expand usb selective suspend setting.
Or check it to let windows turn off usb ports to save power.
Click change advanced power settings.
Click the start button and type edit power plan in the windows search box.