Blue Screen of Death errors can occur at any given point after a computer boots up and can just reboot your computer randomly which eventually occurs in a loss of unsaved work on a computer.
so registry errors are inevitable. But you can reset important individual keys to resolve the problem. Open Command Prompt as administrator: Press Win+R, type: cmd, and press Ctrl+Shift+Enter.