This should really be under musculoskeletal issues--see that thread.  But basically, I had the same horrible cramps for months.  Got off low carb diet and out of ketosis and increased potassium intake and they stopped.  These cramps were the worst pain I had ever experienced in my long life.  Feel blessed to be free of them.  Good luck!