Unable to create new file from template

Hi!
We are experiencing an issue when using the only]office document server v.7.0.25 in conjunction with Nextcloud v.25.02. Users occasionally encounter an error when attempting to create a file from a template: “Unable to create new file from template.” How can we resolve this issue?

We have observed that when deleting a file from the user’s root directory in Nextcloud, the ability to create one additional file from a template arises before the error occurs again. What could be causing this correlation between file deletions and the ability to create new files from templates?

Nextcloud version (25.0.2)
Operating system and version (Ubuntu 22.04)
Apache or nginx version (Apache 2.4.25)
PHP version (8.1)

I had the same problem with a fresh installation of Nextcloud 30.0.

I did this to solve it:
-User > Admnistration settings > Office > Use Office Open XML (OOXML) instead of OpenDocument Format (ODF) by default for new files