yeast infection while pregnant

i’m 17 weeks pregnant and had a yeast infection so my doctor told me to use monistat. Well every time i try to put the applicator in it hurts so bad it’s like my vagina is pushing it out, it sends sharp pains into my stomach, i don’t have any discharge or itchiness anymore but just pain and i can’t have sex or even use the ointment. Has anyone experienced this or have any idea what it could be?