What to do if you are not able to sleep sometimes?

I used to get sleep paralysis or hypnic jerk , now I m fine but sometimes rarely it hits again , but it's very rare (like once in a month or two), can I stop it fully?
What to do if you are not able to sleep sometimes?
Post Opinion