Swimming

I went swimming when I was about 5 weeks. I did swim a lot under the water so I did hold my breath alot for a period of time. I looked it up and apparently holding your breath is bad while pregnant? I’m worried that might have harmed my baby