Unable to add Oauth2 client

Other buttons in my nextcloud installation are not working either. I have enabled developer console in my web browser and this has come up with some errors but I dont know how helpful they might be.

The security page on load only has:

vue.runtime.esm.js:3019 TypeError: Cannot read properties of undefined (reading '0')
    at o.data (Encryption.vue:113:1)
    at o.<anonymous> (vue.runtime.esm.js:4719:29)
    at vue.runtime.esm.js:5419:21
    at vue.runtime.esm.js:5383:42
    at In (vue.runtime.esm.js:5324:9)
    at e._init (vue.runtime.esm.js:5646:9)
    at new o (vue.runtime.esm.js:5781:18)
    at 64305 (main-admin-security.js:51:1)
    at r (bootstrap:19:32)
    at startup:4:88

If I try to add a file or directory using the plus button in the files app I get:

App.svelte:65 Uncaught TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'.
    at Object.attach (App.svelte:65:8)
    at Object.attach (plugins.js:67:16)
    at a.initialize (newfilemenu.js:59:15)
    at t.View (backbone.js:1310:21)
    at new a (backbone.js:2070:41)
    at FileList._onClickNewButton (filelist.js:3867:25)
    at bt (_executeBound.js:8:65)
    at HTMLAnchorElement.<anonymous> (bind.js:10:12)
    at HTMLAnchorElement.<anonymous> (restArguments.js:16:27)
    at HTMLAnchorElement.dispatch (jquery.js:5430:27)