Since when is it happening? You can try the breathing exercise in activities, it usually helps.
I see, do you get some kind of anxious thoughts?
Try to shrug your thoughts and limit your screen time on bed, take a quick walk around the room and then lie down on your bed with your eyes closed with the intention that you are sleepy.
We try to condition our mind in that way.