You can connect the second inverter to the first using a separate MPPT. This way, any excess solar power can be directed to charge the batteries, regardless of which inverter is generating it.
Make sure your monitoring system can handle two inverters and check if there's any double counting in...