Hi there vienna.hassan,
You may find the troubleshooting steps in the article below helpful.
This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if you manually disconnect the device during the restore process. You can resolve this issue by using USB troubleshooting, using a different Dock Connector or Lightning Connector to USB cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.