When creating a lobby or session, set bCrossplayOptOut to EOS_True, and include the lobby or session owner’s platform in the AllowedPlatformIds. See the Lobby Interface and Session Interface documentation for more information.
https://dev.epicgames.com/community/learning/knowledge-base/WBK2V/epic-online-services-how-to-opt-out-of-console-crossplay