Hass frontend crashes every day

Had the same Problems with a RPi 4 , 1gb.
Having changed the swap size, i never had these problems again. Sometimes its slow, but normaly everyting works ok.
Perhaps this helps even with Rpi`s with more RAM ?
Here my post (and the thread)