~ぶんには(~分には) => as long as ~ N1
~ひょうしに(~拍子に)   => the moment [A], unintentionally / inadvertently caused something to happen N1