It’s quite normal as ressources on PI are quite limited If you had done a search in forum before posting you would have noticed quite few guys have already complained about that in the past !
If possible try to use a PI4 with an SSD and not an SD card, it’ll help reduce the problem !
Side note: the frozen system should appear only when compiling, not downloading/flashing !
The RPi is powered by a 3A RPi labelled adapter. The nodeMCU is powered by 500mA computer USB slot.
The frozen: The web page is unavailable, SSH too, ping is working. I’m waiting almost 1 hour to response, but this ha is responsible my house water supply si can’t waiting more.
The freeze is not complete, the ping is working. BUT the first 2 “freezing” is not in compliing mode, but only searching the device with ESPHome’s “new device” button. (Clean ESP32 on my computer’s USB slot).
IMHO a weak computer is done this in a half hour… (but i don’t know how ESPhome works in the background) i’m remember that time when a linux kernel compiling lasted for 2 days. That computer is a quartz watch compared to an RPi.