The error that occurred was due to the presence of a NaN or Inf value in the matrix, and since the svd function within collintest cannot handle that, one approach to take to solving that is presented in a similar solution below:
As for the second part of the question, not sure what you mean by including the constant in the matrix, but this link should help you understand the function and should hopefully help you with the second part as well.