ESP8266 unstable connection
Power supply...

I designed a pcb for the ESP module, it works like a charm since then. Used a TC1262 regulator, a 100n ceramic and a 1000u electrolyte capacitor (maybe 100u would have been enough) very close to the Vcc and GND pins.

Seems like the ESP is really sensitive to the power supply stability.