Frequent Reconnections in VNC

Whenever i need to switch the tabs to check something else and when i come back to the idx tab back again, it reconnects and this is not the case only when i have been there on another tab for a long time,

even if the cluster tab is inactive for a sec it reconnects please help me with this its very annoying

OS - > Ubuntu 22.04
Workspace → Android Studio
Region → Asia