Orbital stability of the unseen solar companion linked to periodic extinction events