Troublesome circuit with pull up resistors for smart power strip based on ESP8266
The root of the problem is using home electrical switches instead of momentary switches. These switches are SPST, not two-way (or three-way) switches, and they are connected to 4 GPIO pins including D8/GPIO15 which is used for flashing the ESP8266 (on Wemos D1 mini v3). Now the switches give a digital input to the ESP and trigger a toggle to the relay whenever the state changes meaning that it's possible for the switch connected to GPIO15 to be in a closed state (pulled down) at boot which causes the ESP to not boot the OS.

TLDR; I fixed it by using D1/GPIO5 as the input for the switch and configured TX as output for the relay which was initially connected to one of the relays (output). Instead of TX, I could have connected the relay to GPIO15 but since the wires were already in place I chose not to do so.