Error after upgrading app

Use your backup.

Otherwise you can manually install the v6.0 of OnlyOffice app.
Get it from Releases · ONLYOFFICE/onlyoffice-nextcloud · GitHub