I would advice to open an issue at Github if it happens too often, the devs are there and can look into it.
See here for eventually milestones and fixes for v5.1.1 release (issues + pull requests):
https://github.com/qbittorrent/qBittorr ... +is%3Aopen