Spacing between prefabricated energy storage battery compartments