When i create a dxf of AutoCAD files, the dxf file cannot be opened by AutoCAD after which makes me think it is corrupt.
Test code showing input file and trying to open result file here:
AsposeCAD_DXFTesting.zip...NET 23.9, you can test it on your side...