Melatonin. Some people confuse regular melatonin in material doses of 3-6 mg, with the "homeopathic" form -- manufactured in potencies of 12x, etc. Melatonin in material doses can induce sleep. Some may experience grogginess the next day with it, though. The "homeopathic" form is not a true homeopathic remedy because no provings have been done on it, and it may or may not correspond to your exact symptoms.
Bad dreams. Melatonin after 35 can help people sleep. The most common side effect is weird dreams and being too groggy the next day. Start slow and titrate up if you are not sleeping well also Progesterone can be low in perimenopause which is an amazing sleep hormone. Have your doctor check that or see someone who prescribes bioidentical hrt.