>> ... as soon as I plug the printer in I get this error ...
Do you mean:
- As soon as I plug the printer in to a power socket ..., or
- As soon as I plug the printer into the network
If the latter, then it is quite likely that something on your network is sending a rogue/corrupt print job, which is badly malformed and causing the language interpreter in the firmware to crash.