ESPHome install fails while linking firmware.elf

Any device I try to update with new code I get this error:

Linking .pioenvs/esphome-web-e61fb0/firmware.elf
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.
*** [.pioenvs/esphome-web-e61fb0/firmware.elf] Error 1

Any ideas how I can repair this without loosing all my devices?

That’s not a lot to go on. I don’t believe anyone will be able to help without more information.

What have you tried?
Have you tried a minimal example YAML?
What was in the log before the fatal error?

And also - what sort of environment? ESPHome add-on, or Java, or ESPHome Web?

Looks like a failure from lack of ram. What is your hardware?

Yes, it’s ram.