The problem has been fixed through reinstalling windows 11
There's no need to reinstall the whole OS.
Uninstall the enablement packages, delete registry key WindowsSelfHost, delete folder SoftwareDistribution, disable optional diagnostics and restart.
Then check for updates and/or optional updates.