Thanks, Bobbie. It looks like both marriages resulted from conflation of two Hamiltons - one supposed wife was actually married to a different James Hamilton, third cousin of the 3rd Earl of Arran; the other supposed wife was actually married to Claud Hamilton, brother of the 3rd Earl of Arran. I have deleted the marriages and added research notes to all those involved.