As long as I follow this I don't even notice that I have myotonia. That's after severe stiffness earlier in my life. The only thing now that sets it off is exposure to pesticides and herbicides or medications that affect electrolytes.
I did find that taking the supplement Acetyl-L-Carnitine allowed me to tolerate a little sugar occasionally. It is often prescribed for diabetics because it helps with insulin resistance and peripheral neuropathy. You can get it at any health food store.