It is quite strange for a 500 error not to have errors in the PHP log. But when it happens, then it’s typically a web server crash - there might be something in the system logs.
I believe mPDF is deprecated since 7.13, if I am not mistaken. It shouldn’t be trying to call mPDF…