The biggest primate that ever walked the Earth may have died out because of its giant size and limited diet, new research suggests.