It sometimes (not always) happens when I need to change a UEFI setting. When it's happening the screen turns black and the computer tries to reboot. Note that the computer does not crash to the point of a memory dump. When this happens I have to keep trying to reboot and eventually it loads the default Bios settings and boots.
I have so far replaced the memory, PSU and motherboard to no avail. Once the computer does boot, everything seems perfectly stable. I noticed a new Bios update and flashed it to my motherboard, but I do not yet know if it fixed things.