maybe I haven't explained what's going on very well, but basically it's as follows:
in the iso I set it up so that in the user phase it installs:
vcredist (2005 to the year 2022, 64bit and 86bit), directx9web, realtek driver net, 7zip , and also a wallpaper
when performing a clean installation of the system, with my iso created with ntlite, the “Photos” application works normally, for photos and videos, offers the option to edit and crop the video normally, and is also functional
after formatting, I perform a clean installation of drivers with nvclean, and chipset for amd, then I also perform my optimization, with several regedit adjustments to return the system completely to priority and performance, I configure core affinity, among many others
after performing the optimization, the system continues to run the photos application normally, with all its functions,
for example, today I've had the system for 1 day, and it bugged today, yesterday the pc was optimized, in the afternoon, and at night photos was still working normally, to edit videos, and today in the morning too,
and then, after a few hours off-line, I started the system normally, and what I'm reporting happened:
the photos application simply closes, instantly, about 2 seconds after opening, without displaying any error or failure on the screen, it simply closes.
the “movies and TV” application, I also made it available on iso, and it even works normally, without closing instantly.
Translated with DeepL.com (free version)