Just want to say this one thing that if you are using KeepPassXC: use backups, backups and backups.
I lost my KeepPassXC because I was on arch and I was a complete experimentalist (I still am) but I lost my KeepPassXC. I lost a lot of my mail accounts and everything (many of whom I didn't even add phone verification to for providing even more privacy) and lost quite a bit of access at one point of time. Interesting times and I learnt a lot of things.
I looked into syncing with KeepPassXC with syncthing and some other things which I have seen ideas floating around but I have never gotten to that and it seems that there is some friction in setting the passwords up for multi-device usage.
I am now on Bitwarden, which yes also has been enshittifying from what I hear but I have been saved far more often by its ability to sync and save when I either migrate/use it to a new device or now if I lose my computer files like the last time, then I will not access to my passwords which are most important things anyway and as such, it is something to keep mind of when evaluating KeepPassXC as well.
Sorry for you. Keepassxc has a great option for this.
Tick "Backup database file before saving" under General > File Management, and fill destination format with :
.../{DB_FILENAME}-{TIME:yyyy_MM_dd-hh-mm}.bak.kdbx