Strangely enough, I ran the same piece of code that I was running yesterday without any additional changes you suggested, but Netgen did not crashed on me this time even for a finer mesh size of lc = 0.1 . I am sure this is just a bug in GMSH.