Have you spoken with your kind, loving, smart partner who's a remarkable person about what you just shared with a bunch of supportive strangers that you're NOT having a meaningful relationship with?
You might want to give that a try before you hit the panic button and go down in flames... Frankly, I think that knowing you'e seeking reassurance and comfort by having sex when you're in a stressful situation is a really, really great thing to know about yourself! I commend you for your introspection and self-assessment. But, be gentle with yourself as well and try not to judge yourself harshly. You're taking steps to change something about yourself that you'd prefer was different. That is, you said something here and asked other people for their opinions. That's a very positive thing! But, you obviously think you've got a "problem" that you need help figuring out. Yeah... I dunno... but if it isn't too scary of a thing to do, talk with the person you love about it. You know, the one that Loves YOU... I'd be really surprised if, seeing how he's the bees knees, he wouldn't WANT to help you if he knew about it. Ya never can tell. it might even bring you closer together...
Anyway, them's my thoughts and I'm sticking with them even if they're wrong...
I wish for you clarity of thought, resolve and happiness.
Dan