This may be related to corrupt or missing files needed to run the Microsoft Store. Users have reported the following solutions to address the issue:
🛠 MICROSOFT STORE: Update Microsoft Gaming Services
Check for updates to the Microsoft Gaming Services in the Downloads section of the Microsoft Store.
🛠 Reset the Microsoft Store App.
You can find instructions on how to do so HERE.
🛠 Reinstall the Gaming Services app.
Go to the Troubleshoot game installations on a Windows device Xbox Support article and choose "Still having problems?" for steps.
If you continue to experience issues after running through all of the above steps, please contact Xbox Support.