Worried

I had a miscarriage in January. Didn't start bleeding or know until 8 weeks but baby stopped growing at 5 weeks. Today I am exactly 5 weeks pregnant with my rainbow. I'm so scared something is wrong. The top part of my stomach randomly hurts. Before I got pregnant they thought maybe my Gall bladder was going bad. My pregnancy symtoms seem to be disappearing too. At 4 weeks after eating I'd bloat SO BAD. Now I feel as if I don't bloat at all. If my gallbladder is bad, can it cause me lose my baby? Or are the pains signs of a miscarriage?