Non-Benzodiazepines
If you are struggling with insomnia and you are taking non-benzodiazepines such as Ambien which is generically known as zolpidem, or in Canada, zopiclone which is under the brand name Imovane, it can hurt your memory. The effects of these sleeping drugs can be quite harmful in the long-term as well. Take in melatonin and learn sleep meditations to help you sleep, or go get a sleep study done to see if there is an issue.