My mom once told me if she has a problem with my dad, she talks to him first. Not her friends. Not social media.
She said, “Advice is fine. But your partner shouldn’t be the villain in someone else’s story before you’ve even tried to fix it together.”
Stop discussing your relationship issues with your friends. Even if you and your partner end up solving your issues your friends won't see them the same way.