I had a python script write some data to some images, but I didn't know which ones. This one liner was able to find which images were corrupted and open them in NeoVim for editing in binary mode.
find . -iname '*jpg' | tr '\n' '\0' | xargs -0 identify 2>&1 | grep -i error | sed "s/^.*\`\(.*\)\'.*/\1/" | tr '\n' '\0' | xargs -0 nvim -b