Sometimes, your computer just runs into an issue that doesn't seem to make any sense. When all else fails, it can help to try to repair any damaged or corrupted files in your Windows install. Thankfully, since Vista came out, the tools to do this have become built into Windows.
https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/repair-a-windows-image?view=windows-11
https://support.microsoft.com/en-us/topic/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094e