I wanted to confirm that using a second monitor avoid any crashes. I used to have the same issue, with the random freeze and the automatic restart. It’s been working great for days now, by using my iPad as a second monitor via Sidecar.
P.S. I’m on Mac Studio M1Ultra running on MacOS 12.4