Hi, I'm Robinson, and I’m happy to help you today.
I know how frustrating this may be for you but I'll do my very best to help you.
You can use this procedure to reinstall the Microsoft Store.
Step 1: Check if doesn't have any corrupt files on the windows.
1-Right-Click on Start then click on Windows Powershell (admin)
2- Type these commands.
sfc /scannow (and press Enter)
Dism /Online /Cleanup-Image /ScanHealth (and press Enter)
Dism /Online /Cleanup-Image /CheckHealth (and press Enter)
3- The DISM tool will report whether the image is healthy, repairable, or non-repairable. If the image is repairable, you can use the /RestoreHealth argument to repair the image.
4-Type this command and press Enter:
Dism /Online /Cleanup-Image /RestoreHealth
Step 2: Reset the Windows Update components
1-Right-Click on Start then click on Windows PowerShell(admin)
2-Type these commands:
net stop wuauserv and press [Enter]
net stop cryptSvc and press [Enter]
net stop bits and press [Enter]
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old and press [Enter]
ren C:\Windows\System32\catroot2 Catroot2.old and press [Enter]
net start wuauserv and press [Enter]
net start cryptSvc and press [Enter]
net start bits and press [Enter]
netsh winsock reset
3-Reboot your PC
Step 3: Then you can use this other command to reinstall the Microsoft Store.
1-Right click on Start.
2-Click on Windows PowerShell(admin)
3-Type:
Get-AppXPackage -allusers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} and press ENTER.
4-You may see some errors, but it's normal
5-Reboot your PC
6-Open the Microsoft Store, click on Library then click on Get and Install updates.