Diagnostic step 1
Correlate Nginx error timestamps with Node/PM2 logs and system dmesg: identify if Node crashed near 502 times and capture stack traces or stderr logs. Result meaning: If Node crashed at the same times as 502s, fix the crash cause (OOM, uncaught exception). If Node remained alive, continue to network-level checks.