There is problem with the IMG_20241019_195232.heif file.
kimg_heif.so Qt plug-in from kimageformats prints following error:
heif_decode_image error: Invalid input: Unknown NCLX matrix coefficients: Unknown error
It means that “matrix coefficients” value is invalid. The value is set to 3, which is not defined in the standard.
Some programs are able to open the file, because they interpret the unknown coefficients the same way like default (nobody knows how to interpret the undefined values, “default” is merely a guess).
However, the kimg_heif.so uses strict decoding which rejects invalid files.
This kind of issue should be reported to the phone’s vendor because they produce files according different understanding of the standards.
As a workaround, it is possible to patch sources of kimageformats to disable the strict decoding (but do it only on your own risk and responsibility).