Core stopped and wasn't restarted

This morning I woke up with Home Assistant being unresponsive. Luckily I could SSH in and this was the latest in the core logs:

s6-rc: info: service legacy-services: stopping
[23:53:13] INFO: Home Assistant Core finish process exit code 0
[23:53:13] INFO: Home Assistant Core service shutdown
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Strangely no error before this. Why would it shut down? And why wasn’t it restarted? I tried checking the supervisor logs as well, but they don’t stretch this far back for some reason.

I was able to bring the system back up with ha core start.

It happened again, and this time there was something interesting in the logs:

2024-06-25 23:30:59.487 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/info request
2024-06-25 23:30:59.493 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /core/info request
2024-06-25 23:30:59.496 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /os/info request
2024-06-25 23:30:59.498 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /info request
2024-06-25 23:30:59.500 ERROR (MainThread) [homeassistant.components.hassio] Error fetching hassio data: Error on Supervisor API:
2024-06-25 23:31:01.915 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /info request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed ('172.30.32.2', 80)]
2024-06-25 23:31:01.920 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /host/info request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed ('172.30.32.2', 80)]
2024-06-25 23:31:01.925 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /store request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed ('172.30.32.2', 80)]
2024-06-25 23:31:01.929 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /core/info request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed ('172.30.32.2', 80)]
2024-06-25 23:31:01.933 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /supervisor/info request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed ('172.30.32.2', 80)]
2024-06-25 23:31:01.938 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /os/info request Cannot connect to host 172.30.32.2:80 ssl:default [Connect call failed ('172.30.32.2', 80)]
2024-06-25 23:31:01.939 WARNING (MainThread) [homeassistant.components.hassio] Can't read Supervisor data:

Looks like it could be the same issue as mentioned here: [homeassistant.components.hassio] Can't read Supervisor data: · Issue #3301 · home-assistant/supervisor · GitHub

I am running on an older Raspberry Pi, so out of memory is definitely a possibility.