I know metallic thread in sweaters can set off the alarm. Any chance you had on jeans with some metallic embroidery? I've seen that on hip pockets. Metal waist button or zipper? A tiny forgotten bit of foil-packaged candy, gum or pill in a pocket?
Were you wearing the same clothing on the two times the alarms were set off?