Thank you for providing the details of the issue you are experiencing with your iPhone wanting to continually restore. I found an article with steps to address the issue you described:
Restore loop (being prompted to restore again after a restore successfully completes)
Troubleshoot your USB connection. If the issue persists, out-of-date or incorrectly configured third-party security software may be causing this issue. Please try to troubleshoot security software issues.
You can find the full article here:
Thank you for using Apple Support Communities.