If there is not a good well supply close, you could try a ac. supply. Sometimes they have the capacitors and relays.(sometimes)
You don't want to get a cap. that is too big or too small.
Sometimes, if lightning strikes too close to the well, it doesn't matter what kind of protection you have. The pump is a goner.
The more grounds there are before the pump, the better. At least the odds will lean in your favor.