57 lost a lot of weight and now trying to add muscle ! But I’m always in pain or fatigued

Weighing in from the pharma section - you are likely low on Testosterone due to restrictive eating and excessive exercise. Most of the advice above will help remedy your T-levels, but you might want to get a blood panel done to check your general health.