Straining with BMs

First trimester, 10 weeks here. Recently VERY constipated and probably a little impacted and super miserable. I just strained very hard to stool and am worried I hurt the baby. Anyone have experiences like this?