I've been taking magnesium l-threonate and l-theanine before bed, I seem to have more dreams and more intense dreams. I've seen both linked to neurogenesis.
Mg threonine/ate usually is taken in the morning because it crosses the brain barrier causing an active response. I can see why you have active dreams. Try changing your mg type for less active nights.