The error pages tool in the control panel is not great. It has a very strict character filter, and if you try to submit something it doesn’t expect, you’ll see this error.
I suggest you just skip that tool and use the Error Pages tool in the client area instead. It’s a lot more flexible than the one in the control panel.