~助詞+数量      => Corresponds to the verb...of quantity N5
Quantity
副詞 + する => Having the nature of..., in condition N3
Description
~ひょうしに(~拍子に)   => the moment [A], unintentionally / inadvertently caused something to happen N1