This is another reason why even so-called end-to-end encrypted password managers are not fool-proof. Use an off-line version of KeepassX, back up the data file on a cloud file storage such as Mega (preferably put the kdbx file inside a password-protected 7zip file or something like that).
https://www.techspot.com/news/79652-dea-demanded-customer-login-details-lastpass.html