If you are willing to experiment and spend more time troubleshooting it, you can try the Tuya Zigbee Contact Sensor++ w/ healthStatus driver. It will not make it work better than the stock driver, but will provide some more detailed statistics that could help to understand where the problem could be.