Someone explained to me that all you have to do is get out of the bed and immediately stand on it and the cramp generally won't happen or will be much milder. Tested and it works like a charm.
This is the correct answer. The first time it cramped, my wife was begginge to stand on it as I massaged it while screaming in agony. The second time it happened she wasn't home, so I decided to just try what she had told me to do a d poof the pain disappeared.