A massive 2012 solar storm missed Earth by just over a week, which could have caused up to $3 trillion in damages.