The 502 error was resolved by increasing the keep-alive connection setting with NGINX.
Some projects still experience 502 errors when conducting performance testing. Here is an article related to testing with NGINX.
Deploying NGINX Ingress Controller on Amazon EKS: How We Tested - NGINX