Install jpeginfo:
jpeginfo
$ apt install jpeginfo
Change directory to image directory and run jpeginfo -c on all image files:
jpeginfo -c
$ cd IMG_DIR $ find -name "*.jpg" -print0 | xargs -0 jpeginfo -c | grep -e WARNING -e ERROR