Is orgasming from masterbating harmful?

Today I did that for the first time my whole first trimester. I am 11 weeks along. Afterwards my stomach became veryyy hard and I had intense cramp sharp pains in my stomach area. Lasted a few minutes. Pains like never before stopped me in my tracks. But I’m so scared I harmed the baby. I had a loss a few months ago. Can anyone relate? Or any advice?