FYI, Aqara and Xiaomi (and Tuya) are all infamously known for making firmware that does not exactly follow all the Zigbee specifications and especially infamous for not working well with (some) other brands of Zigbee Router devices (mains-powered Zigbee devices paired/joined on your network that act as Zigbee repeaters/extenders).
Start by following all the generic tips in this guide with best practice tips should be following regardless:
To start with, before troubleshooting any further suggest begin by upgrading firmware on your Zigbee Coordinator adapter, and more importantly if you have not already make sure to connect the Zigbee Coordinator via a long USB extension cable to a USB 2.0 port (and not a USB 3.0 port) or connect it via a USB 2.0 hub, and get it farther away from all known sources of EMI/RMI/EMF.
Anyway, that guide also including a link to an other guide with loads of specific tips for Aqara and Xiaomi:
I think the best tip from there is to at least not use " Zigbee repeaters reported NOT to work with Xiaomi devices" and instead only use " Zigbee repeaters reported to work with Xiaomi devices".
Another tip specific to Aqara and Xiaomi mentioned there is that Aqara and Xiaomi devices are infamously known for not automatically moving to a better Zigbee Router device if you add such later, so you will need to manually re-pair each and every Aqara and Xiaomi device after you added more Zigbee Router devices for them to connect via a closer Zigbee repeater/extender.
While it does not help, the saying “you get what you pay for” do apply to Aqara and Xiaomi (and Tuya), however many others are successfully using them just fine, especially those following all those tips.