Solution
Providing large 2D arrays as a Variant Attribute input is a risk as you might have many memory issues. Each copy of these arrays is going to be 100s of MB and when copying a variant with multiple of these would magnify that. In addition, each of these arrays must be a single allocation. As they are allocated and deallocated, memory can become fragmented such that even though there is enough total memory free, there may be small allocations spread out so there are no more areas large enough for that array and this is supported by the problem not being seen in 64-bit.