openHAB UI crashes browser tabs

I have seen this happen also in OH3, but now, after I updated to OH4, it happens all the time, making it rather difficult to work on OH:

I don’t even know how to correctly describe the issue, but basically what happens is that the browser tab where OH is running becomes unresponsive to the extent that it wont even react to Cmd + R. If I copy the URL from that tab and open a new tab, the page loads with no delay. Tried both a Chromium based browser and Safari. In Safari it seems to happen a little less, but I’m not sure.

There is nothing in the OH logs, so I assume that this is an entirely local issue in the browser. But it only happens with the OH UI.

EDIT:
Could is be related to these authentication issues?

2024-04-14 21:18:08.704 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:15.864 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:19.780 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:19.848 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:20.254 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:20.261 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:27.053 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:27.105 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:27.515 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:29.283 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:33.986 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:33.994 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:33.995 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:33.997 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:34.007 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token
2024-04-14 21:18:34.009 [WARN ] [openhab.core.io.rest.auth.AuthFilter] - Unauthorized API request from 192.168.1.104: Error while processing JWT token