I assume that you're using Windows 10 (simply because your problem seems to be fairly common with W10 but not elsewhere).
Start here:
https://support.microsoft.com/en-gb/help/4027498/microsoft-store-fix-problems-with-apps
(You can either go through the steps in the order suggested or, possibly simpler, go straight to Step 4)
If nothing there works, try a different app to open your photos with. (The one that comes with Windows 10 is pretty dire anyway). The might Irfanview deserves a place on everyone's computer anyway:
https://www.irfanview.com/
You've not said how you access your emails. If you're using the Windows 10 Mail app you might find that something in my Microsoft link above will help. (If not, as a workaround, try copying a link from an email and pasting it into your browser's address bar).
Otherwise, see if the problem still occurs when you access your email via your email provider's website. (If it does then it would appear to be a browser problem. rather than one with your email app. If it doesn't then it's clearly a fault with the Windows 10 Mail app; try something else, such as eM Client or Mailbird, instead).