iPhone 14 Pro Max stuck on recovery mode and won't update or restore
I have the iphone 14 pro max with iOS 17.1. Yesterday, it randomly started restarting out of no where every 4-5 minutes even if u weren't using it. I tried updating it but it would restart mid-way and cancel the update. I decided to put it into recovery mode and update it using my MacBook. It stop randomly restarting but whenever I started updating it, it would restart when it was around 90% done. I decided to give up and start restoring it but it restarts when it's 90% done as well. Does anyone know what I could do or if this is a hardware issue?
iPhone 14 Pro Max