Hello, thank you for reaching out to Microsoft Q&A.
May I please confirm whether you are using Windows 10 or Windows 11? To check, type winver in the search bar on the taskbar, press Enter, and share a screenshot of the resulting dialog box.
Meanwhile, here are the troubleshooting steps you can try -
1
Reset Microsoft Store cache -
Click Windows + R, type wsreset.exe, and click Ok.
Wait until the Microsoft Store app opens.
Try installing the app.
2
Download and install any pending Windows updates -
Go to Start > Settings > Windows Updates > Check for updates.
Download and install all the available updates for your device.
3
Run the System File Checker Utility scan.
Open Command Prompt as administrator.
Run Sfc /scannow and click Enter.
Once the command has finished running, restart your computer and install apps from the Microsoft Store.