Microsoft, and probably other OS vendors, have all taken the “green” approach and uses power management to shut systems off when the idle time has been exceeded. The problem with this is idle time is calculated on keyboard and/or screen touch. There are two levels of settings, one when on battery power and one while plugged in.
If you have a tablet dedicated to the CNC I would absolutely adjust the power profiles accordingly. For me I set it so the tablet NEVER goes into sleep or power off mode, for both the “on battery” and “Plugged in” profiles. Mine is always plugged in anyone so no issues on the battery side.
Never had an issue since.