Appium Session is Automatically getting terminated once it is established the connection

Hi- unable to inspect the elements and also the session is automatically getting terminated after a while when the session gets started , i have even tried with the latest version of appium and also the appium inspector with the extension of .saucelabs but facing the same issue.

Appium versions: Appium- windows-1.21.0 exe,1.21.0-1, Appium inspector 2022.7.1, 2022.2.1.
OS: Windows 10 pro
please can anyone help me on this if you have ever faced this issue and got resolved.

Thanks & Regards,
Pravallika

please provide more info. what is the error you get? which line of code triggers it if you know. platform versions, android/iOS and so on…