Hello Kwil, and welcome to Seven Forums.
You might see if running a sfc /scannow
command may be able to help if it was corrupted system file at fault.
If that didn't help, then you could do a system restore
using a restore point dated before you had this issue to hopefully undo and fix it.
Hope this helps for now,