There is a string variable limit. It is long, but clearly you've hit it. I believe the limit also exists in simply propagating data within an automation. When dealing with data that long, you'll have to do it entirely within a script. I am not sure of the exact limit, but if you are already hitting it, then you'll need to handle the string entirely inside the script, or create a component to handle that data.