Morning sickness : unisom

I feel horrible for having to take a unisom every night just because I feel like it’s harmful to the baby ; now weeks into my second trimester but every time I try to stop it the next morning is horrible & full of vomiting . Dr keeps telling me it’s okay to take ! Thoughts ?