problem playing online, unknown error comes out.

I can not play online, what happens is that my brother shared the game purchased from Microsoft Store, then I wanted to play online with my brother and I bought it from Steam so I had to uninstall the Microsoft Store version and install the version of Steam, My Game played in the Microsoft version was deleted, now when I try to play with my brother I send him an invitation and he gets an unknown error and when he invites me the invitation to the game does not arrive. please help!!