Ciao, sono molto contento il mio commento ti ha aiutato. Scrivo in Inglese perche il mio italiano non e esattamente perfetto.
The gate issue isn't about it barring my troops. I'm talking about cases where there are no enemy around, and the units are passing through. The problem stems from the funnel being created when a lot of troops are going through the gate (I say a lot but it happened to me with like 6 archers too). This causes some units to go into the gate with an angle, and instead of simply waiting their turn/squeezing through (like you'd see in starcraft for example when units go through chokepoints) they get stuck on the sides and the stuff I said happens. There indeed was a case where I took my archers out of the walls, and because they got stuck going back inside the enemies caught up with them and then the gates closed and they died.
I have no problems with the units getting stuck outside when enemies are close. Quite the opposite, it's a good feature and the player should get punished for controlling their units poorly. This bug is a separate issue.
P.S. Nowadays no matter what you do the game will probably run with proton lol. Just don't implement vanguard or something XD. I run games even with anti-cheats no problems. Never tried Valorant