Why does the Photos app on Win... Note

Why does the Photos app on Windows 10 fail to open images and then crash?

Why does the Photos app on my Windows 10 PC suddenly refuse to open any image file, showing a blank window for a few seconds before closing itself? Why does it work for some file types like JPG but crash immediately on PNG or HEIC files? I've already tried resetting the app, repairing it, and reinstalling it from the Microsoft Store, but nothing has changed. Is this a known issue with a recent update, or is there a deeper problem with the image codecs or the app's dependencies that I need to fix?