In the instance that your Windows 10 machines shut down after being idle for too long despite the changing of the power settings. You can make a couple of changes in the power settings or within the registry to fix this issue.
Power Settings
Under Advanced Settings
Change Sleep to Never / 0
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\SettingAllowPowerSleep
set the value to 0