I did as you suggested, and it runs okay. I rebooted PC, before trying Photos again.Photos app appears to start, followed by a black screen and then closes and returns to desktop.
I then uninstalled Photos using the IoBit Widows App Uninstaller, rebooted, and, then ran your routine again. Tried Photos and whilst it seems it almost gets going, it shows a black screen followed by returning to the Desktop. Something must be wrong somewhere else, unfortunately!!!