Pregnant and cramps

So I drank 5 water bottles in 2 hours and then my stomach started hurting really bad, like when you have to use the restroom. Started cramping really bad. Finally was able to use restroom after an hour and now i have diarrhea TMI sorry

now i’m stressed out thinking i might have hurt the baby

any lady have any knowledge on this? :(