OSMC crashing when opening photos

Some more info - the crash also sometimes happens when opening the folder. The “scanning media info” gets to 100% and then OSMC crashes. Sometimes the folder will open and let me scroll through the images but crashes on opening one.

The thumbnails appear to be showing OK.