Perhaps your amazon EC2 instance has a firewall that is blocking the API from calling out?
The request from your end would have the information to come back through the reverse proxy so I personally doubt that the proxy has anything wrong with it.
check also your nginx connection .. When setting up n8n behind an Nginx reverse proxy, you might encounter issues with connection stability, webhook URLs, or OAuth redirect URLs. These problems often stem from incorrect proxy configurations or environment variable settings