This error normally has to do a corrupt file.
A few things to try.
This maybe an issue with a system file being corrupt.
Right click your start button and select Command prompt (Admin) to bring up elevated Command prompt.
In Command prompt type sfc /scannow and press enter.
Restart the computer.
If that doesn't work then try this,
Right click your start button and select Command prompt (Admin) to bring up elevated Command prompt.
In the Administrator: Command Prompt window, type the following commands.
Press Enter key after each command:
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth
Important: When you run this command, DISM uses Windows Update to provide the files that are required to fix corruptions.
To close the Administrator: Command prompt window, type Exit, and then press Enter.
Restart your computer.
If none of that works follow the suggestions in the link provided.