Two previous first ministers are among those who claim agreement is incompatible with existing legislation