ESP8266 gets disconnected from Blynk after some time

Hi all,
I have made a simple home automation project with ESP8266 wifi module, Blynk and IFTTT. I am using the esp8266 module to control a 4 channel relay and all the controls work as expected on startup. However, after some time, the esp8266 module shows up as offline in the Blynk app and does not accept commands from Blynk app or the IFTTT integration. I am positive it is not an issue with my internet.
Any help would be much appreciated :slight_smile:
The code I am running is as below:

#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

char auth[] = "myauth";
char ssid[] = "myssid";
char pass[] = "mypass";

void setup()
{
  // Debug console
  Serial.begin(9600);
  digitalWrite(D3,HIGH);
  digitalWrite(D4,HIGH);
  digitalWrite(D5,HIGH);
  digitalWrite(D6,HIGH);
  
  Blynk.begin(auth, ssid, pass);
}

void loop()
{
  Blynk.run();
}