I’d seriously stay away from Ambien.
https://americanaddictioncenters.org/ambien-treatment/side-effects/
That stuff is no joke.
Hot tea, warm coco,white noise apps, porn, try whatever but pharmaceuticals.
Personally I wouldn’t be concerned about a couple of nights of insomnia.
We all have it at some point.
It’s called life.