6w1d heartbeat detected after a week of spotting

I went to the ER today due to on and off light brown spotting for the last week, as well as new onset right side abdominal/pelvic pain yesterday. I was worried about the possibility of an ectopic, and I’ve also had two prior losses. The ultrasound today was able to identify a gestational sac and fetal pole measuring 6w1d which is exactly what I expected based on my predicted ovulation day. The heartbeat was 102. They weren’t able to identify any specific cause for the right side pain, which has improved today. My beta hcg also came back at 31,526 which means it has been rising consistently over the past couple of weeks. I’ve never had a beta hcg that high with either of my prior losses, so that gives me some hope. But I did see a heartbeat at 6 weeks with my first loss and went on to lose them anyway, so my guard is still up. I hope the spotting will subside soon as that would give me much more peace of mind. Just wanted to share in case anyone is going through something similar.