Can't get help with sleep issues as I'm not young or old?

Just wanted to check in and see if anyone else has had a similar experience. Went to GP as struggling to sleep at night - my head literally just won't switch off, taking me hours to fall asleep. GP says they won't medicate me as I'm not a child and not elderly, giving no alternatives. Anyone had a similar experience, or have you managed to get help?