I agree with surdoux.
Prior to diagnosis I had a number of health issues including anxiety and depression.
I now realise they were largely caused by my following a 'healthy' diet which simply did not suit me and was pushing me into diabetes via pre-diabetes and was leading to weight gain, hormonal imbalances and stress and low mood and poor sleep patterns.
Once I had my diagnosis of type 2 diabetes and I went on to a High Fat Very Low Carb (keto) diet my health and well being immediately improved and it has been doing so ever since. It was like a cloud lifting.
(You can see from my 'signature file' below this post how my blood sugar levels and other tests normalised very quickly and have remained there ever since.)
More than a year on and I have been consistently more healthy and happy than I have been for decades and this is despite having some very difficult and stressful life experiences to cope with on top of the default challenges I have had to deal with for decades.
I don't think I am alone in finding that being diagnosed with diabetes and dealing with the situation logically has led to a much improved standard of life.
Interestingly from a pharmaceutical point of view - many years ago I was prescribed Metformin as a therapy for my PCOS and I took it for 3 years and then stopped because I didn't consider the benefits to be outweighing the side effects and during that period my health did not improve and neither did my mood. Changing my diet has made an incredible difference and I can only imagine how different things may have been for me if I'd only realised the benefits of this way of eating much much earlier. However I am glad to have got there eventually and I am looking forward to being younger and healthier in my sixties and seventies than I was in my forties and fifties.
Thank you for sharing, I'm glad you are feeling much better now!