Here are some things to try for a 42 kernel error. There are many things to try.
Update the computer and all additional updates. Windows 11 had many updates to fix problems.
Please type the word update in the search and open the page. Update if needed.
Click on advanced settings on the computer. This will open a new page. Check for optional updates and update if needed.
___
Run Power Troubleshooter
Press the Windows key + R then type:
msdt.exe /id PowerDiagnostic
Click OK
Follow the prompts
Restart the computer.
Try doing a clean boot:
A clean boot starts Windows with the least number of drivers needed. This will help to see if there is one program that is causing this problem.
Please click on the Windows Key and the S key at the same time.
Type msconfig and select System Configuration.
Click on hide all Microsoft services in the Services.
Then select Disable all. This will disable all programs other than Microsoft.
Select Apply
OK
___
Go back to msconfig.
Click on the Startup button in System then select open Task Manager
Disable all items in the Task Manager.
Close the Task Manager.
Then Select OK
Then restart the computer.
Now see if you still have a problem. If the problem has been fixed, then start adding back one program at a time to find out which one is causing the problem.
____
Restore Default Schemes.
Press Windows key + R then type
powercfg -restoredefaultschemes
Restart the computer.
___
Windows has a feature that allows users to scan for corruptions in Windows system files and restore corrupted files. I have enclosed the directions below. You can cut and paste the code.
- Type CDM in the search box. Do not hit enter.
- select Run as Administrator then hit enter.
- Then type without the quotes. "DISM.exe /Online /Cleanup-image /Restorehealth" and hit enter.
On the same page run each of the codes below separately and hit enter.
sfc /scannow
DISM /Online /Cleanup-Image /StartComponentCleanup
___
Please let me know if this fixes the problem.