Duplicate subscription created in stripe but corresponding user may or may not get created in s2 member

We use stripe for payment capturing. Sometimes when a user fails to submit any payment method , a subscription will be created in stripe but corresponding user is not created in s2 member. On 2nd or 3rd attempt of user in submitting payment details ,multiple subscriptions are created in stripe but only one subscription gets created in s2 member, and sometimes that also does not happen.
We contacted stripe support and they have responded telling it is the issue with wordpress integration.