One option if the variable length limit, which is what I think you are actually referring to, can be overridden by using binary rather than normal variables. See /help Binary Files

Additionally, you might ask for suggestions in the Scripts & Pop-ups section regarding other methods that could make your script work with the current limitations and without using binary variables.