A driver miscounted a system object
Every time a driver uses a system object it adds one to its counter, and subtracts one when it is done. This error appears when that count does not add up: almost always because a driver subtracted too many times.
Why it happens
- A faulty driver (Microsoft suggests checking the System log in Event Viewer to find it).
- New hardware that is not compatible with your Windows version.
How to fix it
- Check whether the blue screen says «What failed:» followed by a file ending in .sys: that is the driver that caused the error. Search for that name to find out which device it belongs to (for example, nvlddmkm.sys is the NVIDIA graphics driver) and update or reinstall that driver.
- Think about what changed right before it started: a program, a driver, an update or a new part. Uninstall or remove it and try again.
- Open Event Viewer (right-click Start) › Windows Logs › System and look for errors at the time of the crash: they usually name the device or driver.
- Update the graphics, chipset, network and storage drivers from the support page of your PC or laptop maker. If the problem started after updating one, roll it back: Device Manager › right-click the device › Properties › Driver › Roll Back Driver.
- Install pending updates in Settings › Windows Update (including optional driver updates) and restart.
Meaning based on Microsoft's official documentation. The steps are general guidance: if you are not sure, ask a technician for help.