I shared this experience in my legs, but it's good to check and maintain communication with your physician. I had a lot of muscles in my legs from running often, and losing muscles caused painful charlie horses and I quickly feel sore after short walks.
What helped me was eating healthy, drinking plenty of water and getting the recommended amount of rest (7 or 8 hours per night). I personally feel better after running and I believe this helped mitigate the issue.