What causes this error?
Usually, the reason for this is a faulty RAM module or defective/out-of-service drivers. You should run the Windows Memory Diagnostic tool to repair any problems in the memory. Secondly, update your graphics card and other drivers to the newest versions. The dust in your CPU components can also be the cause of this problem, as it makes the computer overheat and underperform. Therefore, it is recommended to clean your PC carefully every 3-6 months.
How can I fix the UNEXPECTED KERNEL MODE TRAP error?
The issue is surely annoying, especially when it starts to happen every time you try to start your computer. However, there is no need to worry, as we will guide you through nine different solutions to counter this BSOD.
1. Thoroughly clean up your PC.
Before implementing any software solutions, try cleaning your system and removing any dust. The CPU compartments can become dirty over time and require thorough cleaning. First, disconnect the USB, printer, mouse, keyboard, and any other peripheral devices. Cleaning does not mean scrubbing the PC with soap or shampoo. Simply take a cotton swab, microfiber cloth, or a brush with soft bristles and gently rub it over the different components. The assistance of an air blower can also be utilized for quick work. Begin by cleaning the CPU fan, RAM modules, hard drives, graphics drivers, and the rest of the sections. Once done, connect your peripheral devices and power on the computer to see whether the error has been rectified.
2. Remove and reconnect the hardware.
Newly installed hardware can also cause this BSOD issue sometimes. If you have recently installed a RAM module, hard drive, PCI/VGA cards, or anything else, try removing it and restarting your PC. If the error no longer appears, that particular hardware component was the problem. In case you haven’t received any new updates for the hardware, remove the pre-installed peripheral devices, except for the keyboard and mouse. Now, boot up your system and start connecting the removed devices, one at a time, until one of them causes the UNEXPECTED KERNEL MODE TRAP error. Now all you need to do is update the software of that particular device or change it completely.
3. Run the Hardware and Devices Troubleshooter.
Running the Hardware and Devices troubleshooter will further identify the corrupt hardware device generating this error. This troubleshooter will determine the issue and guide you on how to fix it.
4. Run the Windows Memory Diagnostic Tool.
The Windows Memory Diagnostic tool runs various tests on the RAM and notifies the user if the memory module fails any of them. If the RAM is unable to pass a test, it means it needs to be replaced. A malfunctioning RAM is one of the primary reasons for the error we are addressing. For this process, your computer needs to boot up correctly. If it is failing to start, then power it up in Safe Mode. Follow our comprehensive guide on how to boot Windows 10 and Windows 11 in Safe Mode. Once done, follow the instructions below.
5. Update device drivers.
It is always recommended to update your device drivers if new updates are available. Outdated drivers are not only a reason for unexpected kernel mode traps. Here is how to update a device driver:
You can follow the same steps to update the drivers for network adapters, display adapters, disk drives, etc.
6. Disable memory caching in BIOS.
Memory caching essentially refers to the process by which applications and programs save a small portion of data in the RAM for quick access. Unfortunately, this can also be another source of the blue screen of death error. To disable this option, users need to boot into the BIOS menu as follows:
Now that you have booted into BIOS, follow the steps below to disable memory caching:
7. Run the SFC and DISM scans.
The SFC command will look for any faulty or corrupt files in the system and will fix them automatically. Secondly, the DISM scan will repair the image of the Windows operating system. In case there is an internal problem on your computer due to a malfunctioning file that may be causing the UNEXPECTED KERNEL MODE TRAP, it won’t be long before these scans rectify it. Here’s how to run SFC and DISM to repair Windows:
8. Run the CHKDSK Scan.
The Check Disk (CHKDSK) command can scan all of your hard drives and SSDs to repair them or clean them up for better processing. In other words, it will fix all the bad sectors on the hard drives. Here’s how to run CHKDSK:
Note: This will scan the C drive. To scan other drives, you must make a slight adjustment. For instance, to scan the E drive, change the command to ‘chkdsk E: /f’. For the D drive, it will become ‘chkdsk D: /f’, and so on. Now, wait for the scan to complete and look for any errors in the disk.
9. Perform a clean boot of Windows.
Performing a clean boot is equivalent to starting Windows with just the essential services and default programs. Generally, when you start a computer in normal mode, many unnecessary programs and services automatically start and begin to consume RAM. This overheats the CPU, resulting in blue screens of death. Therefore, it is recommended to perform a clean boot on your system every once in a while (every 2-3 months) just to ensure that Windows performance remains at its highest. Follow our detailed guide on how to perform a clean boot in Windows and carry out the prescribed steps.











