What does this question have to do with AP Flex? As far as the capacity of controllable access points of the UDM Pro is concerned, according to Unifi due connected devices are ehrr critical. But your 5 APs are really nothing compared to Unifi's specifications. So no problem at all.
https://help.ui.com/hc...