fail to open dxf by autocad2021

I generated a dxf file writen by dxflib, then open it with AutoCDA 2021 but failed. the error report as bellow:


Bad handle 26: already in use
The following error was encountered while reading
in LAYOUT starting at line 88918:
eHandleInUse
Invalid or incomplete DXF input – drawing discarded.

Would someone meet the same issue and tell me how to fix the trouble, thanks.