Your error is coming from the autoML PIL.Image.open function call so strictly speaking it’s autoML PIL issue, but I guess since you’re trying to run it based on a tensorflow sample I guess it is worth raising here as well perhaps.
Have you tried writing a simple piece of code to loop through the images individually using PIL library within a try except and see if any particular image itself is causing an issue?