I sometimes wonder if our solar system had a giant planet close to the sun and at some time in the distant past but it was gobbled up by the sun.
It could be when a large planet smashes intot he sun it creates an explosion of debris through the entire solar system which then leads to terrestrial planet building.
There’s an interesting program on the Discovery channel called ‘How the Universe Works’...they had an episode on that posited an explanation of how a Jupiter-like planet could have gotten so close to the parent star...it seems the enormous gravity of the star and the planet create a harmonic convergence wave, similar to ripples in a pond when you throw in a stone, that the planet ‘rides’ inbound; sound like this might be a similar situation, if this isn’t indeed the star/planet they were talking about on the show; sounded plausible enough, I guess.