Now if you receive such an error message, here are some of the things you could try and see.
1] Run the Hardware and Devices Troubleshooter and see if that helps. Run the Driver Verifier Manager and see if it helps troubleshoot, identify & resolve the device driver problems.
2] Run sfc /scannow or System File Checker to check for and replace corrupted system files if any. If you are unable to boot to desktop, you may run System File Checker in Safe Mode or Offline.
3] You may also want to run DISM to repair a corrupt system image.
4] Open Devices Manager and see if any devices are marked with the exclamation point. Update your Drivers and see if that resolves the issue. Did you install any new device or hardware recently? Disable...