You might enjoy Bostrom's paper on information hazards: https://nickbostrom.com/information-hazards.pdf
> It may be worth stressing, however, that even if one has an extremely strong intellectual commitment to truthseeking and public education, one can still legitimately and in good conscience explore the question of how some knowledge might be harmful. In fact, this very commitment demands that one does not shy away from such an exploration or from reporting openly on the findings.