Nicole Kidman had to be rushed to hospital while filming her latest TV series, her co-star has revealed.