Diagnostic step 1
Enable debug logging on Nginx (error_log with debug) and capture the proxy TCP flow around disconnect time; correlate timestamps with backend and client logs. Result meaning: If Nginx logs an idle timeout or explicitly closes the upstream, it indicates proxy timeout. If Nginx shows no activity and backend logs show abrupt TCP FIN/RST, an intermediate (LB/NAT) likely closed the connection.