Raise Vit D to 10,000 IU. Retest after 6 months. Aim for 60-100 mg/L.
Take selenomethionine separately from zinc, as they interfere with each other. You may want to take magnesium in split doses, with the larger amount at night. It peaks in serum about 3:30 a.m.
Would you say what your actual ferritin level was, with the units of measure and the range? Was there any test of serum iron? Hair loss can be from both low iron and low thyroid. Low iron could happen when it's sequestered in ferritin and not as available for use.
Be generous with how much fat you eat, modest with protein, and skimpy with carbs. Don't count calories. Let your body feel nourished and cared for. You would benefit from high-fat fishes such as salmon and sardines, including fish oils and cod liver oil. In fact, cod liver oil would give you additional Vitamins D and A. Fish oil on the inside is a blessing for skin on the outside.
Take a morning temperature before you get out of bed for 5 days or so. Best is a manual thermometer held under your tongue for 10 minutes. You want to see 97.8-98.2 F or 36.6-36.8 C. Later in the afternoon is when it's nice to see 98.6 F or 37 C.