It seems that one of the features of Heroes 5 is that, unlike other parts, there is no limit. Or rather, it is limited by the size of the variable allocated for it, probably 32,768.
I'm not sure about editing. I think it's unlikely without a mod. But creating your own is possible!