The following causes can be considered.
Solutions
Connect the USB cable securely to the printer and the computer.
If you are using a USB hub, try to connect the printer directly to the computer.
Connect the USB cable to a different port, or change the USB cable.