When my leds are all off it starts flickering

i have an esp 32 on 5v for my leds and it works fine but if all the leds turn off it starts to flicker and then the esp resets