Eating overnight despite telling myself every night that I won’t

I keep eating off protocol, particularly at night time and my weight is the highest it’s been in years. I make a commitment not to eat overnight, when I wake up, which I do multiple times, and then I just go downstairs and get cookies anyway, telling myself I’ll start again in the morning. My anxiety around sleep and getting back to sleep is sky high. I have a narrative that I won’t get back to sleep if I don’t eat carbs, and I need sleep to function and run my family. I feel out of control, particularly at night when I am more anxious, and always have been. I do it to feel numb and avoid anxiety and the insomnia of perimenopause that can derail the following day.