picture 2 is probably more typical, 4s4p. It also lets you fuse each string separately, if desired.
Not sure if paralleling each group of 4 provides a benefit, 4p4s. It might let you measure that one battery was getting bad. But it might let one get out of balance more easily. Little current should flow between them; you could use skinny wires and have a connector, so you can isolate for measurements.
But neither is balanced. With just two parallel strings, you can connect inverter to opposite corners (positive of one string, negative of the other), and each battery will deliver exactly the same current.
With 4 strings, there is a clever way to first connect 2 strings in parallel, then connect second 2 strings in parallel, then connect the two pairs in parallel by opposite corners. Then connect inverter, such that all strings supply current equally.