Spotting with a positive pregnancy test

Hilary

My pregnancy tests turned positive immediately and my doctor ordered a beta hcg that turned out to result at 337. I have been spotting this week. I’m just super paranoid that I’m headed towards a miscarriage. I’m getting another beta hcg tomorrow to see if it has doubled. Has this happened to anyone else and still had a viable pregnancy?