My phone gets very hot and then turns on and off, and it's been crashing a lot lately
iOS 18 malfunction
It's in beta. You should expect crashes.
That being said, if something is crashing you should let Apple know about it by raising a Feedback Report here: https://www.apple.com/feedback/