How do you stop loving someone?

I’m just in a complete emotional crisis right now. So my best friend and I have a mutual friend and she recently had a crush on him for a few months. She is very religious so she decided not to date him because he’s a different religion. They both liked each other at one point, though. Although, soon after she started to like him, I started to fall so in love with him. He’s such an amazing guy. He’s so beautiful, nice, extremely smart, funny, tall, an amazing singer. His laugh is so precious and he loves kids and we have the exact same humor. I have never met a guy that even comes close to him. I just want him so bad but I could never risk damaging our friendship. My friend told me that I can’t ever steal him and made me promise not to like him. I just can’t stop thinking about him and every night I get so sad and lonely, and my heart beats so fast when I think about him. I could never have him, though. How do you get over somebody? I just can’t deal with this feeling of love anymore