PV inverter breaker sizing requirements
Short answer. Your fine to upgrade to a 40A breaker. Remember the breaker is being used to protect the feeder conductors. If you feel you need to use the breaker to protect your inverter you should install protection just before the unit.