You cant. You are making a sacrifice.
Every time you are choosing one thing over another you are making a sacrifice.
Maybe you can overcome the need for it through a lot of grinding spiritual work but that is a sacrifice.
You will not find some quick strategy to overcome it.
And there is no guarantee that it will work in the end. Maybe you are wrong in what your proper relationship to socialization and spirituality should be.
At least in my life there was less need for socialization when i was more spiritual.