The solution is to repair the .jpg file, and the easiest is by converting the .jpg file to other format, be it .jpeg, .png, .pdf, or other formats supported by LaTeX/ XeTeX drivers., The general problem might be (1) that pdftex does not accept the image-format (which is svgz in this case, because the above filename derives from /usr/share/lyx/images/buffer-view.svgz) or (2) fails at converting the original image to the one, where it fails., To resolve this issue, you can change the PDF viewer from Overleaf to Browser using instructions found here. If the images are still not appearing, there is likely something wrong in your LaTeX. Make sure that you have uploaded the file and specified the file location correctly., The only thing I see is that the ./0_usr_share_lyx_images_buffer-view.pdf file is always empty. Below I provide the full error log (however I can't work out how to have it displayed in LaTeX format)., For what it's worth, JPG is quite possibly the worst image format to use when you're going to print something (because of the quality degradation). In Latex EPS is best, PDF is a close second., If you can't manually sort out the corrupted files then I would try to write a script which compiles a small test document for each image and checks if the compilation was successful..