See this Apple article: If you see an error when you update or restore your iPhone, iPad, or iPod
If you see an error when you update or restore your iPhone, iPad, or iPod - Apple Support (SG)
Additional:
Use an original Apple USB cable.
Turn your iPhone on and unlock it -> enter the passcode.
Go to Settings -> set Auto-Lock to Never.
Check Service.
Check the Wi-Fi connection.
Make sure your Windows PC is up to date.
Update to the latest version of iTunes -> Update to the latest version of iTunes for Windows 10 – Apple Support (UK)
See also -> Check your third-party security software.
Disable your AV & Firewalls temporarily while you restore your apple device.
Turn Off Hotspot.
Turn Off or remove VPN if necessary.