FBX Export is not working (KeyError: ((nan, nan), 2)
Don't use FBX format when you are able to avoid it. Its license makes it difficult to support in open source software so it is not supported well in Blender. Use alternatives like Collada, or Alembic instead when possible.