WRite it out.
I’m not a fan of being on your phone in the middle of the night, but we’ve all been there.
Insomnia, hormone changes, worry, anxiety, emotions, fears, etc. can keep a person from finding deep rest.
I believe that something important is trying to get your attention if it’s going so far as disrupting your sleep.
Try writing it out to find out what’s at the root.