Do you have any reproducible steps to create this zero/negative scale?
Unfortunately not. I had this problem when landing; I'd reset all the settings, but nothing helped. Every time chunks were generated, it would freeze, so I used the log entries to pinpoint where it was getting stuck and changed that line. I can't rule out the possibility that I changed something else while debugging, but I don't remember what it was.
I just thought of something:
transformation.scale was 0 and division results in inf values, which caused the error.