I have dealt with some level of insomnia all of my life but it has gotten worse in the last 5 years. I am very light sensitive, to the point that I can't keep my eyes open consistently until the sun goes down no matter how much sleep I have gotten. It has caused me to have a problem eating, has made me gain weight, I have no energy, I always have a headache and am dizzy.
Probably the cause of the light sensitivity is behind your insomnia.
The severe anemia, if associated with low ferritin levels, including levels in the lower normal range, can be associated with Restless Legs Syndrome and/or Periodic Limb Movement Disorder. RLS is an uncomfortable sensation usually in the legs worse at night or if confined like in a plane or long car ride. There is an urge to move them, which briefly brings relief, but the uncomfortable antsy feeling returns. PLMs occur during light and deeper sleep. People have no awareness of THR rhythmic movement of the big toe and ankle every 20 to 40 seconds. Some people often actually have a bicycling movement. They may wake with a tired feeling in their legs or wake with a foot or leg cramp during the night. They both have the same triggers, especially caffeine and Benadryl type agents often found in over-the-counter sleep aids! I don’t know if you are describing hypersensitivity to light, like people with migraines might occur before or during the headache. Those symptoms may all represent something not caused by a sleep disorder, but they might aggravate it and poor sleep aggravates everything else! An evaluation by a neurologist and/or ophthalmologist should be considered, as well as a sleep study, an in-lab study, not just the home ones that are very limited and can’t diagnose PlMD and tend to underestimate sleep apnea, which can be present with little or no snoring, especially in women. It usually gets worse with weight gain. I suspect there is more than one thing going on. To help sort it out requires putting the symptoms in chronological order to put the pieces together including changes in weight and medications.