Use the DISM tool and System File Checker for repairing any missing or corrupted system files:
System File Checker (SFC)/DISM is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files.
Right click on the Start Menu and select Command Prompt (Admin).
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
Type or copy paste the below command lines into it and hit Enter:
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow
To close the Administrator: Command prompt window, type Exit, and then press Enter. Reboot your system to see if problem still occurs.