Ran aground.
One of the dangers of night sailing is running aground.
In fact, throughout the entire nautical journey, running aground is a very likely occurrence. This is because there are not only reefs visibly protruding above the water but also submerged reefs hidden below the water's surface.
During the day, if the lighting is good, one can see the shadows of the underwater reefs and avoid them in time. But now it wasn't fully light yet, and the sea was dim, making it impossible to spot the submerged reefs. Striking them head-on led to running aground.
The consequence of running aground is stranding—the ship stuck amongst the rocks.
To explain further, the ship's hull sits lower than the submerged reefs. After hitting the submerged reef, the ship continues to move forward under inertia, eventually lifting the bow up, reducing displacement, and losing buoyancy until it can no longer move.