Wireless send data error: "Error sending data: timed out"

Hi everyone,
I have currently 10 Wemos D1 minis connected to Home Assistant with EspHome, each with a different script.They work great. However, I have always had the problem with all D1mini that when I upload any changes wirelessly, the “Uploading” counter gets stuck 99% of the time at a certain percentage and I always get the error "ERROR Error sending data: timed out: " :

INFO Reading configuration /config/esphome/esphome-web-b5258d.yaml…
INFO Generating C++ source…
INFO Compiling app…
Processing esphome-web-b5258d (board: esp01_1m; framework: arduino; platform: platformio/espressif8266 @ 3.2.0)


HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
Dependency Graph
|-- ESPAsyncTCP-esphome @ 1.2.3
|-- ESPAsyncWebServer-esphome @ 2.1.0
| |-- ESPAsyncTCP-esphome @ 1.2.3
| |-- Hash @ 1.0
| |-- ESP8266WiFi @ 1.0
|-- DNSServer @ 1.1.1
|-- ESP8266WiFi @ 1.0
|-- ESP8266mDNS @ 1.2
|-- noise -c @ 0.1.4
| |-- libsodium @ 1.10018.1
RAM: [==== ] 41.3% (used 33804 bytes from 81920 bytes)
Flash: [===== ] 47.0% (used 480953 bytes from 1023984 bytes)
========================= [SUCCESS] Took 2.38 seconds ==================== ======
INFO Successfully compiled program.
INFO Resolving IP address of esphome-web-b5258d.local
INFO → 192.168.1.5
INFO Uploading /data/esphome-web-b5258d/.pioenvs/esphome-web-b5258d/firmware.bin (485104 bytes)
INFO Compressed to 341469 bytes
Uploading: [================================================ =========== ] 96%
ERROR Error sending data: timed out

And so I always continue to use the USB cable for subsequent modifications.
Do you know what could be the problem?
Thank you