Could you add a debug statement before the LabelMarker(...) line:
if not image:
    print(image_name)

The next time it crashes, we would know, what file seems to be missing or corrupt.
Also, could you set shuffle=False for the DataLoader? This would make sure to get the file deterministically.