ESP8266 doesn’t connect to WiFi when powered by power supply

Less than 500mA for sure, there’s only the ESP and a Time Of Flight sensor.

The strange thing is that it works when plugged in a socket near my desk