Just to earn (maybe) some reputation points 😁:
As already said in issue 1219 in the ezdxf repo:
The mesh entity created first does not have any vertices and faces and such empty MESH entities are invalid for AutoCAD and BricsCAD.
The next version of ezdxf will not export such empty MESH entities.