@glitter-ball - what are you using mosquitto for? in my case it was the integration layer for Tasmota and Openbkn devices. i migrated all of them the ESPHome and stopped the broker.
I have two incoming MQTT streams - one from my gas and electricity smart meters and a second from the interface to my gas boiler, which also provides water metering. They both only provide MQTT and no option to host the broker, so it’s staying on the HA hardware.
The errors have stopped since I enabled 2GB swap (20% reduction in RAM usage) but I’ve got an RPi5 on the way for a permanent fix.