Apple Mail stuck on "Preparing to Move Messages"?
Read this.
Your 3k resistor is enough to pull GPIO0 low during powerup and the ESP8266 is likely going into serial load mode.
Use a FET to drive your relay if you want to use GPIO0 .....and put a diode across the coil.