Wtf is wrong with me

So my hubby works out of town and quite often I get myself off especially if I can’t go to sleep. Well here lately every time I finish, I get cramps in my uterus to the point I just have to lay there really still until it goes away. It just started happening a few weeks ago and idk wtf is wrong