hit the Windows + ‘R’ keys to open the Run dialog, and type in “mdsched.exe”.
This will open a tool to scan your RAM to check for corrupted or dead RAM addresses (requires restart as it runs as the PC boots).
After your RAM scan is complete, you’ll want to scan your core Windows files Windows + ‘R’ to open a run dialog, and type “cmd” to open a command prompt.
Use the following command:
DISM /Online /Cleanup-Image /RestoreHealth
Once that scan finishes, open the command prompt again, and use the following command:
SFC /scannow
The DCIM command will check your PC’s system restore partition to ensure it’s up-to-date and that nothing in it is corrupted by checking it vs the Windows Update servers. The SFC command will use your system restore partition to scan your Windows installation’s core files for any issues (hence why you scan/update the restore partition first).
From how things were worded, it sounds like the power cord was only loosely plugged into the power supply, and just needed to be reseated, not an actual power load issue.