@monster script works great, except that it seemingly seem to attach a random bone now and then. ( here it decided to attach the ankle bone to the chest straps.-_-
I ma not sure but maybe try to triangulate and look at the polycount then. Maybe the limit is in triangles and remove everything in the scene except the sword before exporting.