Bad cramps after peeing

So I recently had a chemical pregnancy and for about a week until I started bleeding I would get these horrible cramps at night after peeing. I only got the cramps at night when I’d lay down after peeing. After I started bleeding they went away. I wanted to know if anyone else who’s went through a chemical experienced this as well?