I think you did well by buying 5kw inverter for that rated size of solars. Otherwise you were going to undersize it.
And remember in solar system we don’t undersize or oversize the Inverter, we only give it a slight tolerance.
If you know how to calculate No of panels and daily consumption you will know how to size your inverter ✨
Hope I helped.
KE Maboko