I dont think there is anything wrong with the ESP as I have experienced this with multiple ESPs. They would all work fine if I put them onto a circuit I have wired on the breadboard though.
Debug messages:
.wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2
....wifi evt: 1
STA disconnect: 201
.......wifi evt: 1
STA disconnect: 2
......wifi evt: 1
STA disconnect: 2