That error (-2147023170) is 0x800706BE, which suggests file corruption of some indeterminate type, perhaps caused by a failed update cycle. It is a catch-all error for failed updates. This error code pops up for RPC configuration errors, Windows Update errors, and other Windows config files.
The best suggestion I could find online is to manually attempt to run a Windows update cycle. If you really DO have an RPC (remote procedure call) error, YOU can't fix it. You can only hope to have Windows fix it for you.
Some specific things to try:
1. From the CMD prompt run as Administrator, you can type the SFC/scannow command and hit <ENTER>. Let that run. If you cannot run that command, try DISM/Online/Cleanup-Image/RestoreHealth and hit <ENTER>
SFC is "system file checker". DISM is "deployment image servicing and management" - one or both will be available from CMD prompt when run as admin. They are HIGHLY privileged and not to be "diddled around."
2. For WIN11, you can also get into Settings >> System >> Troubleshoot >> Other Troubleshooters >> Windows Update to see if you can get Windows to fix a failed update.
3. Finally, you can look up "Windows Error 0x800706BE" with a general web search and see all of the things this could be.