Bad Gateway error on Azure AD B2C

After a successful login from the user, when is redirect from Microsoft I have the http 502 error.
Only happens when is a B2C tenant / app registration
When is a regular AD tenant works as is expected
There some special configuration i need to perform?
The logs on the real only say: LOGIN_ERROR error: identity_provider_login_failure
I really appreciate some advices!
Annotation 2020-06-27 170756|690x350
(is the same error on localhost or server on production)