"Connection lost. Reconnecting" whenever I change something

I've been running HA for a few years now. Recently (a couple of months now) I get "Connection Lost" whenever I make a change to home assistant. By change I mean I delete a helper, deploy a node red change, etc. This does not include changing the state of an entity.

If I make any kind of change to ha, the entire UI becomes unavailable across all devices. The browser window I made the change in displays the connection lost error, as does any device running the ha app. New browser windows will just spin with the "loading" animation. This lasts for exactly 5 minutes, then everything starts working again.

During this time the backend is still up and responsive. I can open the console and interact. All automations continue to work. The only thing that doesn't work is any UI.

I am running HA as a VM on Unraid. It has plenty of memory and CPU available to it. I have checked HA's logs, the VMs logs, the console, etc. I can't find any errors or any log lines that would indicate what is going on during the 5 minute "black out".

I'm not sure how to troubleshoot this. Any help is appreciated!