Just gonna leave this here in case it's useful to someone.
I recently dusted off an old #lexmark #e260dn #printer and put it on my network. Any print job I sent from my #mac running #macos #ventura failed. A little log reading landed me on this solution, which seems to have fixed things.
Open /Library/Printers/Lexmark/filter/psoptionreroute in an editor and change line 8 from:
use POSIX qw(tmpnam);
to
use File::Temp qw(tmpnam);
After that, it should work fine.
#lexmark #e260dn #printer #mac #macos #ventura