Windows 11, Screen goes black, sound still there, then crash

From Funiaita

If your Windows 11 sometimes gets black screen(s) while still playing the sound/music and shortly after your system crashes brutally, you CAN try the following. Not sure how much sense it makes. Sorry.

  • Open your computer and check ALL the power cables, but especially both ends of the ones which connect to your graphics card

If that didn't do the job:

  • Get the newest display driver for your graphics cards
  • Disable "Hardware-accelerated GPU schedulung
    • Settings / System / Display / Graphics / Change default graphics settings (at the top)
  • Uninstall X-Box-Gamebar
    • Open a shell as admin and enter
Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage