What can I do? Pleas help

I recently broke up with someone on a long-term relationship I had with that person that I deeply cared for and it's getting super late here but I find it hard to sleep than usual as I normally would sleep with my partner every night. Now I find it hard to sleep alone just so easily. Has anyone gone through this? I already deal with very bad anxiety and depression but also being heartbroken is not helping me have a good night sleep. Does anyone have a good suggestion on how I can sleep through this? And learn to get used to it? I know it will be awhile to recover.

yo yh I understand where you coming from bease recently I’ve gone through somthing similer see I’m still talking to her cause I now i love her but my anxiety was too big so i decided it was too hard for both of us um I want to get back with her but I’m afraid of what if I do and my anxitey comes back cause after we broke up like after 20 mins I got anxious about somthing else so I was wondering if it was my anxiety all along and im also afraid of what if all my thoughts now and back when i was with her kind of team up sorry that I’m asking a question on your question but for your question I think you should give it time or mabye just try to fix your relationship if you can I don’t know what happened between you two obviously but if you can why not