If the brother printer keeps going offline there may be a problem with the printer itself. Make sure the printer is turned on and connected to your computer via Wi-Fi or a cable. Look for a small piece of paper or ink and make sure the lid is not open and the paper is not jammed.
Have you checked these solutions to resolve the issue?
Update Drivers
Check if the brother printer is turn on
Check the USB cable
Restart The printer spooler
If not then check out this guide, hope it will help to resolve the issue.