The reason for this is a too short fermentation. The water evaporates during the bake and creates large pockets of air. Normally the evaporation will be more even, but as there is not enough gas the pockets will converge into a mega pocket. To fix this you need to ferment for a longer period of time or make your sourdough starter more active.