Success! After countless tries, fiddling with cables, changing ports, pushing espruino buttons in frustration etc finally it went through with no errors. After that every consecutive try so far works fine.
I don't have a clue what was the problem as I'm still using the same cable and USB port. But I guess if you get the same problem then just keep trying, it will come back to life :)