There are many possible causes for Tika to give this error, but here are a few:
The PDF could be password-protected.
It could be too big.
It could be an incompatible format.
To rule out a version incompatibility, you can convert the PDF file that is generating the error to an earlier version. You can use something like this sample Ghostscript (https://www.ghostscript.com/) to achieve this: