Validate the allocated array in NDArrayPool::copy