Edge WebSocket handshake timeout at 2k concurrent connections

Why does this config cause WebSocket handshakes to fail with a 504 Gateway Timeout when scaling to 2,000 concurrent agents on Genesys Cloud BYOC Edge 24.1.0 (Asia/Singapore)? Running JMeter 5.6.2 against the platform API. The load pattern is linear ramp-up. Checked Genesys Docs but found no mention of connection pool limits. Any tips on tuning the timeout values?