I gave up on using raspberry pi for running servers.
I ended up buying a $60 lenovo on ebay www.servethehome.com/…/2/ and then loaded it up with 32GB of ram. Now I run a proxmox hypervisor and around 20+ containers/VMs. Best decision I ever made. I just spin up servers willy nilly
If you don’t need GPIO then run a hypervisor. Cheaper than SBCs and more useful.