too obsessed

How do I stop being so attached and obsessed with a person? I’m in a “talking stage” with someone who lives a bit far away and everyday I feel so frustrated when he doesn’t respond immediately or when it’s been hours since he’s texted back. I keep checking my phone at work and when I’m spending time with friends and family and it feels exhausting to always wonder and overthink about what he’s doing. Sometimes at night I struggle to fall asleep because he’s out clubbing but not responding, and I check his location every time we’re talking. I think this has something to do with my last partner cheating on me because we were long distance, just like me and this new guy are, but I don’t know how to be more trusting and calm, and less obsessive