This sounds really miserable. I’m so sorry you’ve suffered for so long. You are probably perimenopausal (which is a term for the symptoms that happen “around menopause”). Many women during this period of life experience irritability, fatigue, a lowered sex drive, depression and mood swings that seem to come out of the blue. In addition, many women have difficulty sleeping due to hot flashes. The sleep deprivation makes them even more on edge. In your case, these symptoms may be further aggravated by hypothyroidism, which can also cause fatigue and depression.
Fortunately there is treatment for these conditions. It’s long past time for you to see an endocrinologist to adjust your thyroid medications and to consult regarding possible medications to relieve the symptoms of perimenopause. You might be prescribed an antidepressant as well as hormone medications. In addition, this is a time in life when you should be especially careful to eat well, to get extra sleep and to get in some exercise every day if you can.
I hope you and your husband will also consider seeing a couples therapist. You have a life together that is worth saving. You need to learn ways to manage this period of your life. Your husband needs to learn ways he can support you. You could both use some help reclaiming the intimacy you have been lacking for some time.
Fortunately for all of us women, these symptoms eventually do come to an end. You could just wait it out. But it could take years and the way you are feeling and behaving could destroy a perfectly reasonable marriage. I encourage you to get the help you need to make these next few years more comfortable for you and your family.
I wish you well.