Spiral nebula

A spiral nebula was a gaseous cloud important to the formulation of new worlds and star systems.

The Doctor, Leela and K9 once encountered such a nebula on "the edge of the cosmos". Although its high gravity was necessary to bring together the requisite matter to form star systems, it was extremely perilous to any ships that might have gotten too near. The Doctor's TARDIS immediately reacted against the proximity of the nebula by sounding alarms. In trying to explain the problem to Leela, the Doctor said that it was "sucking everything around it like a gigantic whirlpool — including us."

One craft that did not escape its gravity well was the P7E. Like a fly caught in sandpaper, it was trapped inside the nebula, unable to get out. Over time, more and more matter collected on the hull of the ship until it found itself effectively at the center of a newborn planet. The R1C nearly suffered the same fate, but the Doctor was able to devise a successful escape strategy. (DW: Underworld)

Background
Although Earth, too, was formed by the swirl of gravity, and was created around a ship just like the "P7E planet", the Doctor was able to safely pilot his vessel back to the creation of the Earth without issue. This suggests that Earth was not born of a spiral nebula. Alternately, the Doctor could have piloted the TARDIS to a point in time past when the gravitational effects of the nebula were at their most severe. (DW: The Runaway Bride)