Hi, TansukhGanatra!
Thanks for reaching out to Microsoft Community. We are sorry to learn you have issues opening photos via the Photos app on your Surface Pro (5th Gen). Thanks for taking the time to let us know about this and allowing us to help you out. Did the issue start after you installed the most recent Windows Update? You mentioned resetting the device, was it via the USB Recovery?
This option reimages the entire device, including the partition on the hard drive.
It is the most complete form of reset.
You will need to back up your personal data.
You will need to reinstall desktop apps. You will need to run updates after completion.
If the issue occurs after a reset, then the root cause is very likely hardware related.
You will need to download and set up a recovery image on a USB drive. Open USB recovery link to get started. The information on what size and type of drive is provided at the destination page.
If not, that's the very last thing to do to troubleshoot the issue. If it is opening photos that is the issue, it might be related to the app. Can you try another photo app to see if it can be opened? Are those same photos having issues opening using another Windows 10 device?
In the meantime, kindly run the Surface Diagnostic Toolkit and make sure to complete the tasks as well.
Let us know how it goes.
Kind regards,
Janette_Z