Tensor instability in the Eddington-inspired Born-Infeld theory of gravity