Since the problem occurs in safe mode as well, I don't think it's caused by the video driver.
Maybe the problem is being caused due to corrupted system files.
Use the system file checker to repair possible corrupted system files.
- Press "Ctrl + Shift + Esc" to open Task Manager;
- Select "File > Run new task";
- In the "Open" field, type cmd, check "Create this task with administrative privileges", and click Ok;
- Run the following commands at the Command Prompt one at a time:
dism.exe /online /cleanup-image /scanhealth
dism.exe /online /cleanup-image /restorehealth
dism.exe /online /cleanup-image /startcomponentcleanup
sfc /scannow
- Restart the PC and see if the problem is resolved.