Fashion’s embrace of artificial intelligence brings risks, from demand misfires to data breaches. How can brands protect themselves?