Chosen Solution

Iphone XR freezing and restarting around 10 times a day. I hope someone can help me with this.

This issue has been showing up with iOS 16. You can refer to the Kernel Panic wiki page for more details, but these specific issues are likely to be software related. Every other time I have seen these sort of watchdog timeout panics, but no missing sensor is mentioned, a fresh install of the OS through iTunes has been the solution. Obviously make sure your data is backed up first, but there is likely some software conflict or bug that the phone keeps running into.