Yes. The four batteries will show ab average voltage, resulting in a lower voltage showing to the inverter. This will cause the inverter to think they are lower than what the two strong batteries are really at, and will therefore overcharge them.