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.
You can make a difference in the Apple Support Community!
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
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