Haven't been able to find a pattern to this, but every once in awhile during image uploads some images will fail and get listed as "undefined" along with all the images that worked. While uploading a set, here were 3 that did this along with one that worked in case there's an obvious difference:
Undefined:
Spoiler: show
Working:
Spoiler: show