I’ve been trying to sleep for hours but to no avail
Don't take sleeping pills, if I were you. Don't just think about your problems. Because that is the primary factor that affects your sleep. Another one is your healthy lifestyle, you should maintain regular exercise, eat healthy foods and stay away from people that gives you negativity.
If you want to sleep, practice it on a regular basis. Oh, don't just do it for a month. Make it always.