Hello, i installed my pi-hole and adguardhome containers on a usb-to-sata adapter which hosts an old Adata 128 GB ssd. That should last like 8-10 years of medium use.
I had bad experience with regular flash drives so i figured the adapter+ssd combo is still cheap and more reliable.