I found a StackOverflow thread here regarding the same error. A lot of users were reporting it was caused by a plugin conflict. Have you tried disabling plugins to see if that allows you to proceed?
As a workaround, have you tried editing the files manually using a text editor versus the native Theme Editor?