Clients disconnects from the server (GSH + Matchmaker)

Hello, i have an issue about clients disconnecting from the server.
Scenario: I defined max players for each instance which is 4, the server is allocated matchmaking 4 players, they join the game and start playing. ( i have backfill enabled )

A fifth player wants to connect, makes a new allocation for himself ( because the max players has been reached on the first alllocation ), as soon as that fifth player connect to the server, the other players on the first allocation gets disconnected from the server and the fifth player remain persistent on his allocation leaving both servers allocated, will be providing some code relevant to matchmaking and game hosting ( SEE ATTACHMENT ).

9800517–1406745–Game hosting.cs (12 KB)
9800517–1406748–Matchmaker_mainmenu.cs (6.2 KB)

Hello, for me it looks like the problem might be in here. It sounds like the Server accepts Players, eventhough your MaxPlayers variable is set to 4. Could you please share the Logs regarding the connection Integer?
If thats not giving a hint, did you change anything in the logic of this code or is it from the original Video?

Actually after further investigation, it seems that the second allocated and the first allocated server has both 7777 port predefined by Mirror networking, i had to set the server to headless start mode “do nothing”, that way i was able to set the port from multiolay allocation and that worked like a charm.
I appreciate your help.