If you’re ok with a mobile workstation, i grabbed a refurbished P52 on ebay. They go up to xeon (6 core) and you can stuff a ton of ram in there. You can’t get one if these models without a quadro video card unfortunately so that does mark up the price, but it should be useful for running the emulator. And lastly an Nvme SSD - if you have all those it should work well, but i cant comment on the thermal longevity as to whether it might throttle during a long build as it’s been many years since ive done a AOSP build or anything that heavy. I got mine for 1800ish USD but i added some ram on top. It was definitely overkill for what I do, but I think it would suit your case well.