We used to experience this exactly with stripe.js V2, our conclusion was it was some sort of connection issue and using this code to include stripe.js on both the checkout page but also our basket helped to ensure it has been loaded by the browser before it was needed. It massively reduced the instances of the error.
<script src="https://js.stripe.com/v3/"></script>
<script>window.Stripe || document.write('<script src="https://js.stripe.com/v3/"><\/script>')</script>
<script>window.Stripe || document.write('<script src="https://js.stripe.com/v3/"><\/script>')</script>