Sonoff zbminil2 strange behavior

Seems others have had similar problems with Sonoff devices, check the threads and see if you can find any pointers. I don’t have any experience with Sonoff devices myself but to me it sounds like it might lose connection to your Zigbee network and therefore reset? How is your network set up, do you have enough routers, using an extension cable and so on?