Array dimension error in compute

Hello
I am running some code snippet to create lattice structure through rhino compute.Here attaching the code of node server to run the code

Earlier I got timeout error for large sized files,then after added it in environment variable its resolved and getting the new exception as: