I will email you now. I must say it happens with every folder I have with different images. I think it started happening when i upgraded to python 3.11 but I'm not 100% sure.
Before that, the same problem used to happen but the error was differemt: "IndexError: list index out of range"