Membership 2 pro 502 error when enable Stripe

When trying to enable the Stripe Single Gateway, the site gives a 502 error. There are no errors related to Membership on the debug.log. We also tried a plugin conflict test and nothing changed.