If you're interested in this topic, you might also be interested in the idea that there is a Brown Dwarf hidden near our solar system that causes periodic extinctions on Earth, because it periodically messes up the comet shield provided by the Sun and gas giants.
[1] https://en.m.wikipedia.org/wiki/Nemesis_(hypothetical_star)