AM5: B650 is enough. Note the 8400F runs PCIe 4.0, which costs a little performance only with top-end GPUs, not mid-range ones.
Just confirm BIOS support.