Unfortunately two independent battery systems will exhibit this behavior, Normally they should be the same make and configured as master slave, however that does not help you now they are installed. Did not the installer advise you about this? Its just possible you could use homeassistant to control one or both to prevent this. One possible way would be to get homeassistant to switch alternatively between the two so only one can discharge at a time eg one in backup mode and one in normal self use mode, then alternate that every half hour or so. or preferably based on charge capacity, that would of course limit the discharge and charge capacity to just one of the batteries but would still utilize the full total battery capacity. As a short term workaround you could of course do the switchover manually albeit somewhat tediously. ie just switch one off at a time then switch over to the other when that battery has sufficient capacity.