How to fix sleep schedule with panic attacks

Whenever I try to sleep, I always get panic attacks and then stay up and only get 2-3 hours of sleep, this has been going on for a month now and I am tired of it, even if i sleep early I get jolted back awake.

I need a method that will work and like help me fall back asleeo quick.
bro idk about techniques and shi idk what happing you gave no context but try to understand the cause rather than spray and prey with drugs