When the text selection size is > 32,767, there is an off by one error IF the final line consists of nothing but the closing quote character. You get a walkback. Add an extra character at the beginning of that line and it is fine. Put the closing quote at the end of the previous line and it is fine.
I have only verified this in VAST 8.0.0. It is an oddball enough error that I suspect it still exists in 8.0.2 (given that the code has never been touched since 1996).