Hmmm. That’s weird. Actually I see no reason why adding Rewrite could break your error page. Unfortunately these bugs are very difficult to debug. Does the error page work if you use some simple HTML or JSP page instead?
You could also try to search the forums. If I remember correctly there were some other issues with error pages. Perhaps there is some related issue and/or workaround for it.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.