ESP8266 freeze over time

either it is the code that is at fault or the board

eliminate the code by flashing the new board with the old code
if it works then you know it is the code that is at fault