For this printing issue, I recommend you uninstall and reinstall the Xerox Print Driver.
Anything I print gets printed repeatedly, over and over, until the printer runs out of paper or I turn off the power. If I want to print several documents, I have to power off and on between each one.
I would seem like something in the printer's configuration, but there is no software installed to configure this.
I found a page at "https://www.support.xerox.com/en-us/article/en/2108633.html" which says "From the Xerox web site, download the required driver .dmg package to your computer", but that is for aB205 printer. Where can I find a .dmg package for the Phaser 3040 printer?
P.S. "The page at https://www.office.xerox.com/en-us/printers/phaser-3040/specifications" does say "OS Support: Mac OS® version 10.5 or higher, ...", yet I find practically no support for Mac at "www.support.xerox.com".