Anyone taken sleeping pills during pregnancy ?

My husband is leaving me for another woman. I’m 17 wks pregnant. I can’t sleep. Im so tired but i can’t sleep. I’ll go see my doctor today. Pls help if you have any words of advice