API: Raise an error when too many values are passed