You’re running an unsupported version of Nextcloud (v23).
Are you using SQLite? You may want to try backing up your database then restoring it (based on some search engine research), but I’ve never personally encountered that error.
I don’t think your issue is Nextcloud Office related. How is the rest of your Nextcloud functioning?