Thanks for the added details. It does indeed sound like an EMP event that may have produced memory errors to crash your computer.
Just remembered one other detail. I had to start the computer normally by pushing the start button. The computer came on normally, not with the notice that it had been shut down unexpectedly as if the power were shut off. It didn’t turn off through the power supply.