Based on the error message it seems that the KeyError is raised by MXNet, so I would recommend to (also) post this question in their discussion board, as you might find more MXNet experts there.
My initial guess would be to check the ONNX graphs and try to isolate which node is apparently missing (using the 513 id).