が => Clause1, but/however Clause 2 , Used to show a contradiction or opposite N5
Particles
~ひょうしに(~拍子に)   => the moment [A], unintentionally / inadvertently caused something to happen N1