VMWare Esxi 6.5.0 and Ubuntu 24.04 web console Black screen

We have 2 Ubuntu 24.04.1 LTS VMs running on VMware ESXi 6.5.0. If VMs are not used for a while and try to access the Web Console, it just shows a black screen as shown below:

Some users in the link: https://github.com/vmware/open-vm-tools/issues/725 have mentioned that using WaylandEnable=false /etc/gdm3/custom.conf solves the issue. However, once I do this change and restart the GSM service I am never able to access GUI login screen as I am presented with a black screen as shown below:

I have also tried to use lightDM as well but upon logging in system logs me out. As a temporary solution I have set the Power Saving to never turn off. With this setting issue does not occur however having a proper fix would be greatly appreciated

image