Unable to open .dxf file

The error you are getting in the console is a general problem with Processing 3 on macOS. This happens every time you specify a renderer (P3D in your case) in size or fullScreen.