There are a couple of threads around for that particular crash scenario. Most people have found that it’s a specific Windows driver that is the issue. If you update that driver it often goes away.
Check out this thread: WHOLE PC is Crashing! - User Support Hub / Crashes (CTDs) - Microsoft Flight Simulator Forums
and this one: Weird sort-of-crashing (all displays go blank, no inputs recognised, have to reset PC)
In my case, updating my Intel NIC driver seemed to fix the problem, and then I built a new AMD system and haven’t had the issue since.