Is it Nextcloud producing .~NNNN files?

I assume it is a file locking file.

I agree with @BlueBee that’s it’s likely a file locking file, but I don’t believe it’s from Nextcloud itself.