Looks like a hacky and far from perfect approach here. In the gap where you lose your VPN connection and the script triggers, there’s a timeframe that your torrent software will leak a lot of data. A better approach here is to enforce only VPN connections via your firewall. Whitelist outgoing connections to your VPN destination, blacklist the rest. On Linux make the torrent systemd unit also have a dependency on the VPN connection, that it: your torrent service won’t start if the VPN service isn’t active. So in case your VPN disables at some point,the firewall will still do its work.
And you can also buy virtual debit cards With crypto