This question has been answered by megarofl. See the first response.
That sounds like a problem with mod_security.
You need to speak to your host. They can check the logs and turn off any mod_security rules that are being violated.
Try saving just bits at a time, and see what exactly is causing the error. First, make a duplicate of the template and see if you can save that.