I feel like I'm having really bad luck with using the Raspberry Pi 5 as a headless "server" box. I have 2 of them and both regularly lock up and stop responding until they're force rebooted to the point where I gave up on one and moved all the docker containers to a NAS.

The other one also recently decided it didn't want to boot without a display attached after a normal software update.

I even replaced the SSDs in both.