Hello and sorry for the delay! If you haven't gotten this resolved already, I'd be happy to help you get back to using the Unreal Engine on a VM. Looking at your screenshot, the "Reboot initiated from inside the machine" message from the Resource Health means that we can probably get a good idea of what happened by looking at the event manager on your VM.
Before we get too deep in the weeds with troubleshooting I do want to point out that depending on your setup, some downtime is expected depending on the SLA for your VM. This may resolve on its own after giving it some time to recover (99.9% uptime means that there may be up to 8 hours and 45 minutes of downtime in a year). Common causes of downtime are maintenance, updates, server faults, and VM crashes (see the checklist of common causes for more information).
If you're unable to get to the Event Viewer as described in the other answer and you are still encountering immediate logouts, let me know and we can troubleshoot further.