Usually bad battery or poor reception due to interference and too few (good) Zigbee Router devices, so start by following → Guide for Zigbee interference avoidance and network range/coverage optimization
After that also follow this → https://www.home-assistant.io/integrations/zha#best-practices-to-avoid-pairingconnection-difficulties