Code stop working after adding libraries

No I’m saying that when you have code depending on proper timing and interrupts but have too many interrupts going on (interrupts are not interrupted) then you can get in trouble

Is the code working if you don’t play with the leds or pretend with the fastLED library (which I assume you use) that you have APA102 connected instead of your WS2812B?