Is the Pi OS on an SD card? I put all Pis I use on SSDs and haven’t had a single failure for five years. Before I did that a crash was an annual treat.
Obviously SSDs are expensive, even more so these days. With Linux disk writes the SD cards hold on only so long.