The problem you mentioned is probably caused by a problem with the USB driver of the machine. I suggest that you can solve the problem in the following ways:
1. It is suggested that you right-click Computer-Management-Device Manager, find a universal serial bus controller, uninstall all drivers of USB root hub and devices with exclamation marks under it, then right-click any device and select "Scan for hardware changes" to reinstall USB drivers.
2. If the problem still exists after reinstalling the USB driver, it may be caused by a system problem. I suggest you try to save important files and reinstall the operating system to see if you can solve the problems you encounter.
I hope the above reply can help you.