After installing a firmware update from HP, my Laserjet printer barfed on some, but not all, PDF files with a "limit check" and sometimes "maskerror" report. (Not sure if it was a Postscript emulation error, or a PCL error. It was very terse.)
To resolve the problem I removed the printer and reinstalled it. (macOS X Mojave) Voodoo sometimes works.