Problems with Arduino + IR + Raw code low memory
These are the beginning few data pairs.

You can see that they repeat in a predictable pattern.

Reduce the data in your sketch by storing a "key" for each pair of numbers.

First few pairs would be stored as something  like this.

0, 0, 0, 0, 0, X, Y, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0,

 508, 356,         // 0   make all zeros 508, 360 
 508, 360,         // 0   adjust the values if necessary
 504, 364,         // 0
 508, 356,         // 0
 508, 360,         // 0

 508, 25052,       // X

 3540, 1664,       // Y

 504, 1232,        // 1   make all (1) 508, 1230

 496, 364,         // 0
 504, 360,         // 0
 508, 360,         // 0

 508, 1232,        // 1

 492, 368,         // 0
 508, 356,         // 0
 512, 356,         // 0
 508, 360,         // 0

 508, 1232,        // 1

 492, 364,         // 0

 512, 1228,        // 1
 496, 1240,        // 1

 492, 368,         // 0

 508, 1228,
 496, 1240,
 492, 1240,
 492, 1240,
 492, 1240,


Check this out https://test.sui.li/oszi/