This is not unreal specific. Mac OS does it occasionally too. Just freezes and then eventually resets. It just does it much more when using Unreal.
For me the fix for BOTH is to just switch off your monitor (if you have more than one switch off the frozen one) when you switch back on the freeze has gone.
If macos 12.5 fixes this that’s great news as this seems to be a system issue not just UE. Apple silicon (i have 3) crashes a lot more (Unity does it too but not as much as UE) so this fix is long overdue!
Installing 12.5 now