Appium : Socket hang up

I am running my appium scripts and the scripts are failing with reason

“An unknown server-side error occurred while processing the command. Original error: Could not proxy. Proxy error: Could not proxy command to the remote server. Original error: socket hang up”

My setup:
var cap = new AppiumOptions();
cap.AddAdditionalCapability(“DeviceName”, “Pixel 3a”);
cap.AddAdditionalCapability(“platformName”, “Android”);
cap.AddAdditionalCapability(“PlatformVersion”, “10.0”);
cap.AddAdditionalCapability(“udid”, “emulator-5554”);
cap.AddAdditionalCapability(“appPackage”, “”);
cap.AddAdditionalCapability(“appActivity”, “”);
cap.AddAdditionalCapability(“ChromeOptions”, “‘w3c’=False”);

It used to work perfectly but in the last 3 days, it stopped working.