max size of "long" array?

Post your code by using # and output of serial

long equal to 4 bytes and it's mean 2000 *4 = 8KB SRAM 8 KB

this mean your SRAM saturate