Multiplayer crash at connecting to host

I’m trying to play online with my freind but when I try looking for other players to join it says connecting to host then crashes then when I invite people to my game they can’t join me I can play fine by myself but what’s the point if I can’t play multiplayer

Which system do you play on?

I’m playing on pc through the gamepass app

And the ones you want to play with also play on PC gamepass or do they play on Xbox?