Freeze during map generation

Happened at least once to me on Windows (never on Android AFAIR). Also reported by bibinha https://itch.io/post/5980797

It seems like it happens more often on upper levels (maybe when the stamp is too large to generate something reasonable for the map size?)

May be related to #178 (closed)