If you're unable to uncheck Read Only in the Folder and files on Windows 11/10, use attrib command. More solutions have been ...
If you're self-hosting Nextcloud, don't stick with the official office suite. OnlyOffice has a better UI and performance for editing documents.