You can use the System File Checker tool to repair damaged system files.
Follow these steps:
Press the Windows + X keys and select Symbol of the System (Administrator) or Windows PowerShell (Administrator), in the window that will open, you must type the commands in their respective order:
• DISM.exe /Online /Cleanup-image /Scanhealth
• DISM.exe /Online /Cleanup-image /Restorehealth
• DISM.exe /online /cleanup-image /startcomponentcleanup
• sfc /scannow
Each of these actions may take a few minutes, so it is important to execute one at a time. At the end, you must restart the PC.
Check this link: