Thanks for your query.
Bleeding/spotting in the first trimester is not a good sign.
It could lead to a miscarriage
However, 5 weeks is too early to say if the pregnancy
is viable or not.
Viability of pregnancy can be confirmed after a week or two, if there are appropriate growth signs seen.
Meanwhile, continue taking the medication as prescribed.
Take adequate rest, hydration, avoid sexual activity and any kind of stress