The limitation you got is the number of "registers" used by the code.
Roughly, you have to count 50
for each dimension (if that dimension has at least 50 elements).
Thank you, now it is clear.
Big 2D array constructors are used frequently, so using > 100 local variables should be considered as dangerous. The limitations of 200 locals was misleading for me.
And, probably, Lua internals limits MAXSTACK to one-byte value because of bytecode...