As the repair upgrade also failed to fix the problem the clean installation of Windows should be the only fix in this case. You can see at this link how to perform a clean installation of Windows.
https://answers.microsoft.com/en-us/windows/for...
Note: Before performing this procedure, you will need to back up all your files to another drive.