I recently tried to open a PDF but everytime I did, the Dropbox and Google Drive apps on iOS crashed. I fixed this by “cleaning” the PDF with MuPDF – I don’t know what it does, except that after this action, the crashes where gone.
If you download the MuPDF package, you can also find the mutool binary. This can be used to clean the PDF:
mutool clean input.pdf output.pdf