As of 28th April 2025 Stripe provides the following "Invoice Setting" in the dashboard:
Live: https://dashboard.stripe.com/settings/billing/invoice
Test: https://dashboard.stripe.com/test/settings/billing/invoice
You can set "Invoice finalisation grace period", by default it is 1 hour, you can reduce this to 1 second.