Hello there,
This might be an profile corruption.
Does it persists if you select the Photos app as a default program instead? Have you checked if you can replace Photos app with Windows Photo Viewer using Choose default apps by file type option?
Create an new user profile and see if this same happens.
System file check is a utility built into the Operating System that will check for
system file corruption. The sfc /scannow command (System File Check) scans
the integrity of all protected operating system files and replaces incorrect,
corrupted, changed, or damaged versions with the correct versions where
possible.
-Press the Windows key and X at the same time.
-Choose Command Prompt (Admin) from the context menu.
-In the command prompt, type sfc /scannow and hit Enter.
-Exit command prompt.
-Restart the PC and see if this helps you.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--