Am I going insane over my ex boyfriend?

Before anyone read this please don’t judge me, I need advice from you guys. To start off, me and my ex dated a year ago and I’m still in love with him. So recently he has gotten a girlfriend and they seem to be happy together and I can’t stand to see it. I block and unblock him every chance I get. It’s becoming a really big problem. I ended up texting them both harassing them and stalking them to the point they thought I was obsessed. I tried everything I can to get them to break up and nothings been working. This time, I actually messed up big time and now they know it’s me. They called the police on me and the police or attorney ended up contacting me. I’m still confused if ima go to jail because I did threaten them and it’s been a month of me harassing them. I think I gotta problem and I can’t help myself. Anyone out there that can give me any advice on how to be better please reach out in the comments. I really don’t think I’m ok
Am I going insane over my ex boyfriend?
Post Opinion