Recently my iPhone started rebooting itself occasionally and randomly. I've been a long-term iPhone user and never seen this behaviour before on previous or current device.
I'm not one to wear a tin-foil hat, but I have to admit NSO did come to mind.
My mom’s iPad was doing the same thing for a long time and I suspected hardware failure (it was getting kinda old), so I told her to take it into the Apple store for diagnosis and repair. It turned out that the iOS install was just corrupted by bit flips and the Apple employee did a factory reset and it was all good afterwards. There’s many things that can go wrong with even modern computers that aren’t exploit related
The worst part is it is all just too complicated to work out why. My desktop seems to freeze and full crash once every few days and I have no idea why or even how to work out. Since it is custom built, I can't just take it to the apple store and say I want a new one.
It usually is the RAM that has developed a fault. Run memtest[0] to detect errors. Otherwise, in descending order of likelihood, it could be the motherboard, psu, some driver/kernel crash caused by peripheral, or bad cpu.
I'm not one to wear a tin-foil hat, but I have to admit NSO did come to mind.