Not enough memory while referencing array

I tried that but it doesn’t seem to have any effect