When a number of things go wrong from an error as happened here, the best thing to do is a Windows 10 Repair Install. There are 3 ways to proceed:
Keep Everything - best if it works and your computer comes back just the way you had set it up except repaired.
Keep Data - necessary if the operating system damage is extensive. Keeps the User Profile and makes software install quite easy.
Keep Nothing - deletes the User Profile and all else and is essentially a fresh install. Necessary if the User Profile is damage. Be sure you have backed up all your data.
https://www.microsoft.com/en-us/software-download/windows10
Windows 10 is running, so click on the Download button (not Upgrade
Button) and select Run. If the Repair will not run as per above, use
the Download button to create a USB Windows Installation key, then run
Setup on the USB Key.
This will launch the Repair and proceed normally.
Start with the option to Keep Everything.
You can also Keep Data, or Keep Nothing. Keep Nothing is very close to
a clean install.