Try the steps mentioned in this article:
If you see error 9, 4005, 4013, or 4014 when you restore your iOS device - Apple Support
If still no luck after that, you'll have to get the phone serviced, the problem might be hardware related.
Try the steps mentioned in this article:
If you see error 9, 4005, 4013, or 4014 when you restore your iOS device - Apple Support
If still no luck after that, you'll have to get the phone serviced, the problem might be hardware related.
Iphone SE suddenly boot loop and error 9 in iTunes