I have episodic insomnia, and have prescriptions for drugs like zolpidem (Ambien) and etizolam, but I don't like to use them, so I am always on the look out for less-crazy things that other people say them sleep.
Recently I tried the supplement cocktail[1] that neuroscience podcaster Andrew Huberman has mentioned he sometimes uses: magnesium threonate, epigenin, and L-theanine.
While this does indeed make it easier for me to fall asleep, I also noticed that it consistently produces weirder and more memorable dreams than I normally have.
While I doubt there is a causal relationship between remembering your dreams and the creativity benefits described in this article, I do prefer to have wild dreams and remember them. If that describes you, too, you might experiment with these supplements and see if they have a similar effect.
[1]: https://hubermanlab.com/toolkit-for-sleep/