Try adding a capacitor across the power and ground. Close to the LEDs. Basically your hand provides some capacitance to the circuit removing the flickering.
I also had this issue with ws2812b strips and the Nodemcu. I thought it was a loose connection at first since holding it fixed the problem. But Adding a 74HCT245 level shifter fixed it right up
I had a similar issue from an old project. It turned out being a ground loop when I started running the audio amplifier circuit. I never fully fixed it even though much time was spent tinkering with an oscilloscope. Making all of the wires as short as possible and adding a large capacitor like mentioned above fixed the problem most of the way. look into ground loops. They are no fun.