Mass broken images finder and mover script just got updated.
Download link > https://www.patreon.com/posts/85618765
This script is extremely useful when you are doing a mass training.
It can eliminate invalid images that would break or corrupt your Stable Diffusion training.