IR controlled neopixel (program not responding if more than 4 neopixels used)

hello everyone. i’m trying to make a program that controls neopixels using an IR remote. now i managed to make the program work on 4 neopixels since that’s the only one i had initially. today my LED strip arrived (also uses the WS2812B same as the neopixel). i tried running my existing program to control the strip. it receives only the first command. after that, the program just doesn’t receive or acknowledge commands any more. like it freezes. i hope you can help me. thank you!

IR_controlled_2.ino (15.2 KB)

UPDATE: i just found out that the IR side of the program is the issue. i dunno what causes this but the arduino is receiving different hex codes every time i press a button on the remote.