Switch switches off without reason

First question we will ask - do you use Alexa? If yes, check if Hunches is enabled and creating Routines in Alexa. If enabled, consider disabling Hunches and remove any Alexa Routines it may have created.