Some of the causes of this error include the installation of the Microsoft Photos app being corrupt, the image file being corrupt or any other System File supporting the application being corrupt.
Package could not be registered in Windows 11/10
The following fixes may help in fixing this error on the Windows 10 Photos app:
1] Use System File Checker and DISM
To fix any file corruption issue, we recommend using System File Checker (sfc /scannow) and DISM. Both inbuilt tools will replace system files with fresh copies. Once these commands are executed in the given order, restart your computer and try again.
2] Reset the Microsoft Photos App
Open the Windows 10 Settings App with Win + I combination.Navigate to Apps > Apps & features.Look out for the entry of the Microsoft Photos app, select it and select Advanced Options.Scroll down to select the button labeled as Reset.
3] Reinstall Microsoft Photos app using PowerShell
Run Windows Powershell as an Administrator and then execute the following command to uninstall the Microsoft Photos app and then hit Enter: Let the process complete and then reboot your computer. Type in the following command to reinstall the Microsoft Photos app and then hit Enter. Get-AppxPackage -allusers Microsoft.ZuneVideo | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”} Let the process complete and reboot your computer, open the image inside of the Photos app and check if the error is gone.
4] Use Windows Store Apps troubleshooter
Microsoft has released a dedicated Microsoft Store apps Troubleshooter. You need to download and run it. Alternatively, you can find it under Settings App > Update & Security > Troubleshoot. All the best!