I suspect that vaping might be even worse than smoking.
On another note, my wife used to have significant trouble sleeping. Things improved dramatically once she started microdosing and cutting back on coffee.
If you're looking for an alternative, give this a try: https://clearly.eu/nl/products/clearly-not-coffee
After about a month, you should notice better sleep—or at least, that’s what we’re hoping for!