I literally had this problem yesterday. All the label and field text was invisible. For some reason it worked after a snap reinstall of keepassxc.
Why it is snap, I have no idea.
Apart from lots of display switching and scaling causing quirks everywhere.