Magnesium glycinate supplements might help. My grandfather would suffer from these until he stuck a horseshoe magnet at the foot of his bed, but if there’s any scientific evidence out there proving such a trick works I’m not aware of it. However, the magnesium is valid.