It was not clear from a recently posted article on the matter that this would be a setting, but from the change log it does appear that it can be switched off.
> Enables a future optional security feature, which will automatically restart your device if locked for 3 consecutive days.
> Enables a future optional security feature, which will automatically restart your device if locked for 3 consecutive days.
https://support.google.com/product-documentation/answer/1434... (archive: https://web.archive.org/web/20250421103659/https://support.g...)