Question Lenovo Legion 5 laptop - - - - "Display driver nvlddmkm stopped responding and has successfully recovered" ?

Jan 28, 2023
Sometimes whenever I play a 3D video game, my laptop screen goes black, turning on again with maximum brightness that I can't turn down. It also results in the game crashing

Viewing event viewer shows me this error log:

The description for Event ID 14 from source nvlddmkm cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

0cee(2c2c) 00000000 00000000

The message resource is present but the message was not found in the message table

There's a warning log after that which reads:

Display driver nvlddmkm stopped responding and has successfully recovered.

Here's a list of games where this error occurred:
Destiny 2
Bioshock Remastered
TESV Skyrim
Fallout 4
Divinity: Original Sin 2
The Forest
SCP: Secret Labratory
Yakuza 0
Civ 6
The Isle
Apex Legends
Borderlands 3
Guild Wars 2

Interestingly, Two games don't crash even after the error occurs. Portal 2 and TESIV Oblivion.

What I've tried to fix the error AFAIR:
Updating Graphics Drivers
Removing drivers via DDU and installing Lenovo drivers
TDR Delay on Regedit
SFC Scannow & DISM
Turning off hardware acceleration
Turning on Hardware acceleration
Setting those games in high performance via windows
Using discrete graphics in BIOS
Using dynamic graphics in BIOS
Updating BIOS

The only things I haven't tried are restoring the PC to a restore point and resetting the whole PC. I wan't to avoid those options because I don't want to lose important documents in my laptop.

Laptop information:
Lenovo Legion 5 15IMH05H
Geforce RTX 2060 (Driver version 528.24)
i7-10750H with integrated graphics

Any ideas on how to fix it?