Th' 'ell I doin' up at 3:30AM?

I get it, I wake up at least 10 maybe 15 times a night tried melatonin and other over-the-counter remedies really don't work for me I can go right to sleep but then wake up every hour or so maybe more anything disturbs me,my wife and I haven't been able to sleep together for a couple of years it really sucks. I use Ambien occasionally but have to be careful because I find it really makes me not think sharp at work. Also it makes me crave sweets in the middle of the night and I will eat things and not even remember it till I see the bowl or wrapper around my bed. A couple nights ago I tripped and hit the ground I don't remember what I tripped over a piece of furniture I guess but I remember falling and felt lucky I really didn't hurt myself.