Hi there! This is Marc. Thanks for reaching out to the community.
Thanks for providing those details. Based on what you've described, here are a few approaches we can try.
Clear Microsoft store cache by pressing Windows + R to open the Run dialog. Type wsreset.exe and press Enter.
Check permissions, right-click on the Minecraft installer and select Run as Administrator.
If the issue persists, try re-registering the Microsoft Store:
> Open PowerShell as Administrator (search for PowerShell, right-click, and select Run as Administrator).
Get-AppXPackage *Microsoft.Store* | Remove-AppXPackage
> Once done, reinstall Microsoft Store by typing this command:
Get-AppXPackage -AllUsers | Where-Object {$_.InstallLocation -like "*Microsoft.Store*"} | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Restart your computer and try the installation again.
I hope one of these solutions works for you! Let me know if you need further help.
Best regards,