HA is locking up more and crashes alot more

On a pi? How much ram?
You can tweak the swap memory size, which I found helpful on my pi 3bwith HAOS. Haven’t been having issues on a pi4 8gb though.