Masturbating in my sleep

For the past two weeks I’ve been getting busy with myself in my sleep and I’m not remembering any of it.

I have been stressed and not really getting much sleep cuz of finals and I’ve been worried about my job since I almost got fired, me and my ex broke up and I haven’t really wanted to have sex regardless so I guess its been a while since, maybe like a little over a month? But whenever it’s brought up I genuinely don’t want to do it. I tried masturbating before sleeping to see if it would help but it didn’t, if anything it might’ve made things worse cuz I apparently was up last night talking and that’s why I woke up in the middle of the night with my underwear down. The only part I remember is waking up with my underwear down.

I never am able to sleep until like 3 am now, I tried going to bed earlier last night and I just couldn’t get to sleep and every time I wake up it’s like clawing through wet concrete. I keep getting restless like my ex would kinda rub my arms sometimes to calm me down but it just gets me even more amped up and antsy. I used to get the restless leg syndrome thing when I was a kid but it hasn’t happened in a long time so I don’t get why it’s coming up now.

In the past I’ve called my ex crying over the phone really late at night and not remembered any of the crying or what was said, I’m not sure if it has anything to do with this. I tried telling my therapist but I’m guessing she wasn’t the one to ask since she had no clue either.

I don’t know what to do I’m scared to go to sleep anywhere it’s mortifying to think that I’d fall asleep and start up with other people around pls tell me how I can fix this or make it better so I can make this stop. The thought of having no control over my own body makes me fucking sick as shit

Edit: I’m not on any sleeping meds. I’ve been taking antibiotics off and on for my teeth, and I’m supposed to be taking Zoloft for PTSD and depression but I haven’t been, no for a while just because I keep forgetting