Accidentally overheated??

I just took about a 5 minute bath. My husband always says I like the water hot, but to me it’s comfortable. I’m 8 weeks pregnant and after 5 minutes I was sweating and faint so I immediately got out and laid on the cold bathroom floor and chugged some ice water. Is my baby ok?? I so did not mean to do that and now I’m so worried.