I was panicking but then I read this, which seems to make sense.Xaryn Mar said:We would have a warning of up to several days before it hits us which means that precautions could be taken (some as simple as shutting the grid down for the duration) and very little damage would result.
This is one of the reasons that the Sun is watched by satellites and observatories. Remember it will not be the light from the Sun but matter which travels much slower than light so we will have warning that something is happening.
This is also assuming it does happen.