See if any of this is of any help to prevent this event.
Have you tried repairing the app?
Reset or Repair the Photos App
Go to:
Settings > Apps > Installed apps > Microsoft Photos
Click the three dots next to
Microsoft Photos, then choose Advanced options.
- First, click Repair.
- If that doesn't help, click Reset.
If no result
Run the Windows Store Apps Troubleshooter
Navigate to:
Settings > System > Troubleshoot > Other troubleshooters
Scroll down to Windows Store Apps, then click Run.
And maybe if no result:
Check for System File Corruption
Open Command Prompt as Administrator and run the following command:
sfc /scannow
Let it complete.
Run Restorehealth
Open Command Prompt as Administrator and run the following command:
DISM /Online /Cleanup-Image /RestoreHealth
Let it complete.
Tell us what happens.