I have anixety, haital hernia, would these cause lack of sleep and sore and fatigued muscles? If so what can I do to improve overall quality of life?

Exercise and yoga. regular exercise and use relaxation techniques and yoga to have good mental health. ssri can be helpful.
Anxiety not hernia . Anxiety can cause the lack of sleep but it is unlikely to be caused by a hiatal hernia. A hiatal hernia can cause some epigastic discomfort and signs of reflux. The hiatal hernia can usually be treated by antacids and reflux meds. .