Don't know if KeepassXC has the same functionality as Keepass, but they provide an option to use a LocalDB/MasterDB synchronization [0]. This could help preventing desync problems.
[0] https://keepass.info/help/kb/trigger_examples.html#dbsync