If my mind is racing and so I can't sleep I follow what someone recommended to me years ago which is to focus on the end of your nose. That is surprisingly effective for me.
You could also follow the steps the millary recommended (allegedly) - https://www.joe.co.uk/news/sleeping-tricks-197402
You could also follow the steps the millary recommended (allegedly) - https://www.joe.co.uk/news/sleeping-tricks-197402
One: Relax the muscles in your face, including your tongue, jaw, and the muscles around your eyes.
Two: Drop your shoulders as low as they’ll go. Then relax your upper and lower arm on one side, and then the other.
Three: Breathe out, and relax your chest.
Four: Finally, relax your legs, first thighs and then calves.
So what comes next? Well, after ten seconds more of trying to clear your mind, Lloyd Bud Winter (the book's author) suggests that you picture one of the following three mental images:
Lying in a canoe on a calm lake, nothing but blue sky above you.
Snuggled in a black velvet hammock in a pitch-black room.
Saying “don’t think, don’t think, don’t think” over and over for ten seconds.