Many commercial flights may need to be rerouted or grounded to prevent passengers from being exposed to space radiation from solar flares.