Same problem for me with Endeavour OS and i3WM. No idea what it is. Maybe related with folder permissions? So nextcloud client is not capable of writing the file with the keyring or something like that?
I had the same problem with endeavour os and it turned out the missing keyring was the cause. I fixed it with yay -S gnome-keyring , but i think any keyring will do.