I had another look at your post and saw you mentioned Dompdf, an HTML to PDF converter.
If it’s attempting to store the generated PDF file in our servers, you may be hitting this limitation:
Looking up “Dompdf” on the forum I could find one other thread where this was the cause and other alternatives, such as storing content on PNG images, were discussed: