I am not aware of any plausible mechanism whereby a solar storm would cause an earthquake.
Either is a potentialy most serious event, but I see no linkage.

There is some evidence that a severe earthquake could lead to other earthqaukes.

Of course if a severe solar storm followed a bad earthqauke, recovery would be even more challenging, but this would be exceedingly bad luck, not cause and effect.