The general rule is to limit connections to 45-50 devices for a home WiFi router; the combined bandwidth requirements of connected devices at any time will ultimately dictate this number. Slow response of the connected devices due to high bandwidth demands can be somewhat controlled within a Matter network as Matter has the ability to shift network traffic to help improve speed and stability.