How quickly does it fall off the Zigbee network? In less than 1-2 minutes, or after a day?
Assign the Tuya Scene Switch TS004F driver (w/ healthStatus) driver, and enable the Debug logs. Then pair it again (without removing it) - can you send me the Debug logs that follow the pairing ?