Tuya Lamps enter Paring Mode often

I've got a couple of Tuya connected lights and lamps which are powered on and off by a classic AC wall switch. That's because of convenience (we all and our guests can just use the plain old light switch everybody is used to) and power consumption (a hell of a lot of standby current for dozens of Tuya WiFi connected lamps). It's working fine so far. We can turn on the lights using the wall switch and use Alexa to controll the dimming, color etc. But: pretty often a lot if not all of the lamps behind one specific AC light switch turn on and instantly go into pairing mode. Than I have to start the Tuya app, search for the "new devices", let them add to my system and have to move them to the correct rooms and groups. And any automation directly connected to any of that devices is not working anymore because the former devices is marked as "removed" and there is a new device with the same name but missing all the automation. So how can I prevent the lamps behind the light switch going into pairing mode randomly? It's like they keep a tiny charge in their internal caps and remember they were turned on and off multiple times the past 24 hours. Or there might by an issue that so many lamps turn on at the same time that there are tiny surges or voltage drops or glitches on the line which are detected by the devices as "was powered on and off multiple times" Any advice?