This isn’t really a “middle” name, it’s his name in his native language. It looks like public records refer to him as Ernest, so having that as the given name facilitates searches, but both names are equally valid. The best solution is probably to put one of the names as the first name and the other as the preferred name. It also might be better to put the English translation of the Nez Perce name in the biography.