Sonoma crashed

Hi. Been working on my MacBook for two weeks no issues, even today. Came back to do some work and everything hangs, the laptop is hot and fans are spinning. I saw a pop up earlier today about an update but I didn’t accept anything. I’m having to do a fresh install but how can I stop this from happening again, I assume it related to some update I wasn’t aware was happening 😢

Author: @Sea_Anteater_3270