Wtfffff

OK, it's obvious here but still going to ask. My boyfriend and I had been together almost 2 years. He wanted me to have a baby. I took out my IUD and three months later I got pregnant. He freaked out and said it wasn't good timing, and wow, this was a very loving caring like amazing relationship, over the course of the weekend he put a restraining order on me has not talked to me since in the meantime, I've had a miscarriage, but he blocks unblocks me at one point called me and set up a time to me and then didn't show up. What is wrong with men?