Display device screen failed.Couldn't connect to agent of device

Hi,

I am getting the display device screen failed error along with the message “Couldn’t connect to agent of device (Tablet_Pixel_C_API_30)”.This i am running through visual studio emulator.
The scripts were working fine yesterday but all of a sudden i am getting this error. I tried connecting my mobile device(Pixel 3 XL) but still getting the same error.
I tried deleting and reinstalling my agent, restarted my system(Mac OS).
Please if someone could help me with this.

Thanks
Bhavya Chengappa