crazy boyfriend and ex boyfriend

so I have an ex whom still wants to be friends with me and still tries to contact me constantly on every social media and way possible (quite relentlessly). everytime he does, my current boyfriend gets very paranoid and upset. he's blocked him, protected my accounts, knows my password and even has my locations on his phone at all times because of how serious it's gotten. the thing about my ex is that he's actually really cool and considerably a friend (by the way I'm pretty sure he's gay now.) he's very confused as to why I keep blocking him and it honestly breaks my heart a little everytime my boyfriend does. but either way, both guys are absolutely relentless in their pursuits and I don't know how to tell my boyfriend to relax with the insecurities