Problem of ESP8266-01

The following situation is what bothers me :

Though I had already finished the entire program.
However, when the pin is 0, no matter how I switch the button, it’ll be fine. Conversely, if I set the pin to 1 for an amount of time, it’ll just breakdown at the time I press the button.
So, I need to reconnect again and thus rewrite the information of my WiFi.

I was wondering if the problem may results to my wafer, as the serial number was Esp8266-01, or it might breakdown easily because the size of my wafer couldn’t be afforded to run all the entire program.

Below is my forum
Please kindly guide me how to solve the problem.

#define BLYNK_DEVICE_NAME "Light01"

#define BLYNK_FIRMWARE_VERSION        "0.1.0"

#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG

#define APP_DEBUG

// Uncomment your board, or configure a custom board in Settings.h

#include "BlynkEdgent.h"
  int pinValue = param.asInt();

void setup()


void loop() {;

It appears that you are using the Edgent sketch. This requires two of the board’s pins to be used for an LED and a physical button.
The LED is to indicate if the device is in provisioning mode, and the physical button is to clear the saved WiFi credentials when pressed for 10 seconds.
These pins are defined in the Settings.h file, and by these lines of code in the main .ino file:

If none of these lines of code are un-commented then it is the custom board type in Settings.h that are used - and which need to be edited.