502 Bad gateway issue on password reset

It is a common issue for users using the WP Engine host. They have some sort of login protection script that conflicts with Woffice login page. As a solution for that, you should contact their support and ask them for a workaround for such protection script.