Look for the Windows 11 media creation tool but be careful with the source. If you can get it, I would try to repair the install. You can do that by following the instruction below. Otherwise, I would reinstall. I actually had this error in Windows 10 and that fixed it for me. Good luck.
Repair Install, by installing Media Creation Tool, open tool and choose to Upgrade Now.