Hello, thank you for reaching out to Microsoft Q&A.
1
Try resetting the Microsoft Store cache.
Press Windows + R, type wsreset.exe, and click OK.
A Command Prompt window will appear and close automatically.
After that, try downloading Minecraft from the Microsoft Store again and check if it works.
2.
Re-register Microsoft Store.
Open PowerShell (Administrator) window.
Execute the command below and click Enter.
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\ AppXManifest.xml"}
Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"
}
Wait for the command to complete and restart your computer.