How do I stop this?

I got drunk and almost texted my ex from three years ago that I loved him. Luckily I stopped myself before u made a complete ass of myself. But I don’t even talk about him out loud sober so why would my brain even do that. I don’t want this to ever happen again how do I stop thinking about him Completely. I can’t even get fun drunk without worrying if I’m gonna text him. Mind u he has a girlfriend do you know how tragic that would’ve been for me. Then I accidentally swiped right on snap and he probably thinks I stalk him now how embarrassing. Help how do u get this to stop?
How do I stop this?
Add Opinion