Trouble adding more than 30 devices via Zigbee2MQTT

It depends entirely on the layout and structure of your home - there isn’t an optimum ratio - but yes, Zigbee can be very sensitive to the number of routers.

Apart from issues of range and interference, there’s a limit to the number of devices a router can connect to. Lots of good advice here: