For the love of god, don't do this. Ugh. Just use a VPN. Adding a SOCKS proxy on top of that will NOT increase your security AT ALL and will just add hellish latency and exponentially increase the likelihood of dropped connections. It literally makes my head hurt to think about it. Don't do it.
The "best" way to run a torrent client through a VPN is to use something like Binhex's deluge-vpn docker. Basically it runs the torrent client in a network isolated docker container that can only access the internet through a second gateway container running the openVPN client. If the VPN tunnel drops, your torrent client automatically loses internet connection. Even if someone somehow manages to hack into your torrent client (e.g. through a torrent client vulnerability) it won't reveal your IP address because the container the torrent client is in doesn't know your real IP (the isolated container only sees your internal LAN IP). Best of all, Binhex's docker automatically maintains connection to your chosen server, requests port forwarding (if using PIA), and automatically sets deluge to use the correct forwarded port. Awesome!