You specified a replacement pattern that was too long for the allotted buffer space.
Perform the necessary replacements in increments using shorter replacement patterns.