Stripe.js - Duplicated Invoice Items

Sometimes Stripe.js is creating duplicated invoice items? It happens ~once every 100 invoices generated. Could anyone please tell me what’s causing this? Here’s the flow: