AWOL:
So, your 307200 byte array was going into 96kB of RAM.
Assuming a DUE is being used,
RAM wouldn't be used for the actual data array since it was declared as const
and const won't be in RAM.
That said there are some things that don't add up.
The first post said it was a DUE, but yet the code is including
a header file <avr/pgmspace.h> which is a AVR specific header file.
--- bill