Is there a way to stop a charley horse from seizing?

Charley horse. Usually improves with deep tissue massage and improved electrolyte balance.
Blood tests. Some times this sort of thing is caused by electrolyte abnormalities (low calcium, magnesium, or potassium) so you might be able to prevent them by visiting your doctor to see if blood tests are necessary.