Hi, when you connect it to your computer have you tried putting the iPhone in DFU mode
Open iTunes, it should open when you connect your iPhone.
IN quick succession Press and release the Volume Up button,Press and release the Volume Down button.
Press and hold the Side button for 10 seconds until the iPhone’s screen turns black.
While continuing to hold the Side button, press and hold the Volume Down button for 5 seconds, and then release the Side button while continuing to hold the Volume Down button for an additional 10 seconds. The screen should remain black if performed correctly.
In iTunes you should see a message stating that “iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes.”
To exit DFU
Press and release Volume Up
Press and Release Volume Down
Press and hold the Side button until you see the Apple Logo