Been suffering with insomnia for basically my whole life, it takes me never less than 2-3 and sometimes 8+ hours to get to sleep and recently started having more nights where I just have to give up on trying to sleep after lying there for hours because I have work/uni so I end being awake for ~40 hours. I've been to doctors about it and been told things like "some people just need less sleep than others" (ridiculous imo because I'm sat in front of them telling them that I'm constantly exhausted but can't to sleep not that I "need less sleep") or that it just takes some people longer to fall asleep than others (also ridiculous imo because it affects every aspect of my life that I'm constantly exhausted) or I'm given generic advice such as read a book or drink herbal teas as if I wouldn't have tried that before coming to a doctor.
The problem is getting worse now: it used to be that I would have one night of it taking 6-8 hours to fall asleep then the next night would get to sleep in around 2 hours but now it's started happening more that I will have several nights in a row of it taking 6-8 hours for me to fall asleep before getting one where it only takes 2. If I wanted 8 hours sleep a night I would have to be in bed for 16 hours a day which obviously isn't realistic. But my doctors carry on dismissing me. I've had similar problems, particularly where they dismiss me being in pain by telling me that that's just how it is for some people ("some people get more headaches/stomachaches than others") and they are yet to prescribe me anything.
Tried OTC "sleeping pills" (which are really just antihistamines that have drowsiness as a possible side effect) and melatonin but neither have worked so I think I need prescription strength sleeping pills but can't get my doctor to give me any.