Difficult ! I would try to trace the original old parish record on
You might be lucky and glean more information about the family but church records in this period vary a great deal. It may also be the same family with a child dying in infancy. Frequently a second baby was named after the first one - especially if it carried the name of one of the parents. Both father's in this case are James.