I've turned on FileVault on my MacBook Pro 2018 (High Sierra) and immediately after this the MacBook started to reboot randomly (mostly) when in sleep.
First I noticed that after putting my Mac into sleep I need to enter a password to unlock it (touch ID disabled) and that all my applications are closed. Looks like a reboot...
Then once when waking up my computer from sleep I got this message "Terminal interrupted logout. To continue logout, quit Terminal". This convinced me that the MacBook is trying to reboot itself during sleep.
It never happened before - but happens during all long sleep cycles (no matter if during the day or night) since FileVault is turned on.
Any ideas how can I troubleshoot this?