Ethical situations are unboundedly complex and variable. Any finite, fixed set of rules will sometimes require actions that are obviously harmful, for no reason beyond “that’s the rule.” In such cases, you are faced with the horrible choice of violating rules you believed sacred, or creating needless suffering by obeying them.