Always use also Magnesiumsupplements [if your kidney function is n normal]
https://www.peoplespharmacy.com/articles/how-to-ease-leg-cramps-with-mustard
I have written in the past about rusty nails under the mattress [in small boxes, of course], and the website of Graedom described similar results with pieces of soap under the mattress.