Analysis:
It is probably calcium deficiency; In this case, eat some calcium tablets and some foods with high calcium content.
But it may be that your mattress is too hard or uneven. It will be much better if you change to a warm and soft mattress.
Or you may get cold when you sleep because of insufficient leg exercise during the day and bad mood. It is suggested to relax your mind and soak your legs in hot water before going to bed, with some wine or vinegar in it.
The most calcium-supplementing food
Milk: cattle.
beans: soybean, edamame, lentil, broad bean, bean curd, dried bean curd, bean curd skin, bean curd milk, etc.
Fish, shrimps and crabs and seafood: crucian carp, carp, silver carp, loach, shrimp, dried shrimps, dried shrimps, crabs, kelp, laver, clams, sea cucumbers and snails.
Meat and eggs: mutton, pig brain, chicken, eggs, duck eggs, quail eggs, pork floss, etc.
vegetables: celery, rape, carrot, radish tassel, sesame, coriander, potherb mustard, black fungus, mushrooms, etc.
fruits: lemon, loquat, apple, black date, preserved apricot, orange cake, preserved peach, almond, hawthorn, raisin, walnut, watermelon seed, pumpkin seed, dried mulberry, peanut and lotus seed.