The writer of ITV’s new fantasy thriller explains why he loves that his show is so terrifying