I remember the elastic load balancer(ELB) uses the sticky session that PAM doesn't support. So, if you are trying to use the ELB of the AWS, it will not be available. I also experienced the same error report before and the answer was not supported.
Best regards, Kosei