を[余儀「よぎ」]なくされる => Must do A N1
Will, Decision, Doing
~ひょうしに(~拍子に)   => the moment [A], unintentionally / inadvertently caused something to happen N1