in the 1980s , he proposed a controversial theory that the sun has an unseen companion star , which he called nemesis , that orbits the sun every 26 million years and periodically knocks comets out of their orbits , sending them hurtling through the inner solar system .