Read/write operations on Nextcloud WebDAV mounts randomly starts hanging
I have set up a Nextcloud account in GNOME Online Accounts. It shows up in the sidebar of the Files application, and I can access it and browse the files just fine.
While working with files on the Nextcloud mount (opening, editing, saving, creating new, etc.) the mount starts hanging. While it is in the hung state, any attempt of saving or reading files just hang. No error messages appear, it is just that when attempting to open a file (e.g., by double-clicking it in the Files application) the file never load, or if I try to click on the "Save" button in an application where I already had opened a file, the action never completes. Typically, the entire application hangs, and GNOME will eventually pop up a message saying that the application is not responding, offering me to forcibly terminate it or wait some more.
I do not know exactly what triggers it. It just happens rather often while I am actively working with files (document editing and such) on the mount.
While in the hung state I am still able to navigate the folder structure and list all the files on the Nextcloud mount, except for entering the folder where I was working on the files when the hang occurred. That is, when the mount is hung, I can issue
find /run/user/$UID/gvfs/dav* -ls from a terminal and it will successfully list all the files on the mount until it gets to the folder in question, where it will hang.
Attempting to read or write to a file anywhere on the mount will also hang in the same way. What's more, this action appears to "infect" the folder where the write is attempted. By that I mean that if the folder was still functional with regards to listing files, after attempting to read or write a file to that folder, I can no longer enter or list files in it.
In order to recover from the hang, I need to forcibly unmount (using the "eject" button in Files and accepting the warning about applications still using the mount). After that, I can re-mount and try again, and it will work fine for a while.
I will do my best to provide any further debugging information, just let me know where/how to obtain it (it doesn't say in the contribution guidelines).