Miscarriage fear

How do I get over the fear? I’m 5 weeks and I can’t stop thinking about it. I get cramps because going to the restroom is hard and it freaks me out. I occasionally have light brown discharge that comes out and when my boyfriend and I had sex it got on him. I feel the urge to keep taking tests to make sure my baby is still okay. How do I get over this?