Please go to Sales>>Subscriptions>>Select Subscription>>Click on dropdown>>Cancel Subscription>>Cancel.
The sales invoice associated with the subscription will stop generating after cancelling the subscription.