How confident are you that you have wired the switch properly? Did you test the conductors to ensure you properly identified the Line and the Load? I’m asking as there have been others here that have experienced switch reboots when the switch is turned off, and the cause was determined to be that the Line and Load were reversed. Here is one thread: