Most times this error can be fixed by giving the WindowsApps folder the right permissions or by simply quiting the app entirely and trying again.
...
- Remove third-party apps. ...
- Restart your PC. ...
- Quit the App. ...
- Change Microsoft Store App Location. ...
- Disable startup apps.