Error Parameter must be at more 255 ms word find & replace actvity

Hi Guys
Hope you all fine , I have scenario where I need use E-Mail template and replace some dynamic data in E-Mail template using unique keywords. I replace all keyword using replace activity of MS Word in MS Word application scope but one replace activity I am getting error.I contain some HTML code in this variable

can you confirm what’s the length of that html text that you are targeting to replace?

Its not fix i just need to replace in ms word e mail template

can you share the logic you used to replace. 255 character logic doesn;t seems to be coming if you use the .replace function.

Are you using the Replace activity with regex condition?