the risk is addiction. ie, you will soon find it impossible to sleep without the pills. whether the addiction is psychological or physical is a moot point.
benzodiazepines are a good example. when they were first introduced in the 60s they completely replaced previous alternatives the barbiturates, and were thought to be wonderful, until countless thousands of housewives etc found their lives screwed to apoint where they could not function without them… mama’s little helper in the stones song (unless you go for the idea that it was a dildo).
more recent innovations have no less of an addiction potential. and some have been downroght dangerous, prompting frank hallucinations, increasing nighttime activities tending later to sleepwalking (including driving, shooting, cooking, eating, stock trading…almost the whole gamut of mania normally only seen in serious bipolar disorder or schizophrenia).
best to find some other way to get to sleep. alcoholism helps some people, getting stoned helps others! (not that i’m recommending it).
considered an air conditioner?