Insufficient bulk fermentation is one of the most common reasons for a large hole under the crust.
When dough is shaped before enough fermentation has taken place, it contains fewer small gas cells than a properly fermented dough. The gluten may feel strong, but the interior is still relatively dense.
In the oven, the gases and steam expand rapidly. Because there are not enough well-developed cells throughout the loaf, the pressure finds the easiest place to collect. A large pocket can then form near the top while the lower crumb remains compressed.
Underfermented dough often feels firm and slightly heavy during shaping. It may resist stretching and quickly spring back. There may be a few bubbles on the surface, but the dough does not feel noticeably lighter or aerated inside.
Do not rely only on the number of hours in the recipe. Watch the dough. It should show a visible increase in volume, bubbles along the sides and underneath, smoother edges, and a light movement when the container is gently shaken.
Many wheat sourdoughs are ready for shaping before they double. At a moderate dough temperature, an increase of roughly 30–60 percent may be enough, depending on the flour, hydration, starter amount, and planned final proof.