I gave up on using raspberry pi for running servers.
I ended up buying a $60 lenovo on ebay https://www.servethehome.com/lenovo-thinkcentre-m710q-tiny-guide-and-ce-review/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.