Olivia Wilde has hit out at the “toxic negativity” some fans have aimed at her relationship with Harry Styles.