Especially since this is a bare metal installation this really should not happen. The only thing I can think of is you might have chosen a wrong image file (make sure it is haos_rpi4-10.4.img.xz ) or your modem/router/switch is blocking DNS resolution requests from your Pi.
Make sure you connect the USB adaptor to a USB2-port of your PC (but not USB3) when burning the image to the card. I have seen strange behaviours burning images to a sd-card when using USB3. Its worth a try.
So its a network issue of some sort, I cant get HA to connect to github without a server 500 error.
Ive used two different ethernet cables, Ive plugged in at my switch and my router. My router is up to date and only like 7 years old or so. I have a few hours before I get back home to look at things.