LED Matrix glitchy pixels and it stays on after unplugging

There are no other components other than the PSU, the ESP32, the LED Matrix, and the cables. I did not add an extra capacitor or anything

the esp32 (NodeMCU-32S) is currently plugged into my pc via USB-C for power.

Here is a list of the pins I have connected:

Additionally, GND (Matrix) with GND (esp32).
I have configured (software) and connected (physically) `E_PIN_DEFAULT` to 18. It doesn’t say what pin to use so I used the most convenient one.

I have just verified that every single pin connection matches with what I posted above.

The guide only connects one of the GND pins to the esp32. I tried connecting both which caused the matrix not to turn on and only draw the idle current.

The weird thing is that the esp32 seems to be contributing power to the matrix trough the data pins? When the PSU is off and the ESP is on, only red pixels show up and they are dim, but visible and controllable, so its not residual power. It even happens when the PSU was off for hours. I’m scared to turn on the panel for too long as this feels wrong and I want to avoid damaging the components since they are expensive for me

Correction: B is at 19 as in the code above, not as shown in the image. Im tired, its 2 am.