I don't think the physical distance (within reason ) will matter . but they are fairly close. 25m
"Similarly, hard for first inverter to know if it takes power from the second inverter, is that solar or battery"
The first inverter will not have batteries so it will only ever give to system.
I...