Update all the drivers.
Faulty hardware components like RAM, hard drives, or SSDs can cause system errors. Run hardware diagnostic tests to identify any issues with your computer's hardware.
If you recently installed any software or drivers before encountering the error, uninstall them to see if the problem resolves.
Open Command Prompt as an administrator and run the following commands:
sfc /scannow
dism /online /cleanup-image /restorehealth