open Settings > Apps > Apps and features > Search for Microsoft Store > Advanced options > Use the Reset button. TIP: Windows 11/10 also allows you to Reset Microsoft Store apps via Settings.
Hit the Next button to proceed after that. In my case, the Troubleshooter said that the Windows Store cache and licenses may be corrupt. It may be different in your setup. Don’t skip this step.