The iPhone [device name] could not be restored. An unknown error occurred (4014).
Install the latest version of iTunes.
Force your device to restart:
On iPhone 6s and earlier, iPad, or iPod touch, press and hold both the Home and Top (or Side) buttons for at least 10 seconds, until you see the Apple logo.
Connect your device to your computer using a USB cable.
When iTunes asks you to update or restore, click Update (not Restore) to reinstall iOS and keep your personal data.
If you can update, but your device starts up in recovery mode, follow the steps above again. On step 4, choose Restore instead of Update. After the restore completes, you need to set up your device from a backup.
Check for updates to your Mac or PC. If you restart your computer for an update, check for updates again after you restart.
Try to restore your device using another USB cable.
Try to restore your device on another computer.