very worried

Natalya • Expecting baby #1 👶💕
I'm in my first trimester. 12 weeks and 4 days. Going to the doctor they told me I have a very bad UTI and its going to cause me to miscarry  if I don't take the medication. I couldn't take the pills so I got a liquid form. But the liquid form makes me throw up very bad. Someone try to help me out please ? I've been stressed and worried.