Been getting an "Error While Printing" message from my MacBook Air recently, and the only way I can print is through Brother iPrint and Scan, which may be one of the worst utility programs written for Mac.
The standard place to start is to remove the printer, install the latest software from the manufacturer pertaining to your model / macOS version and then re-add the printer.