Error when covariance matrix is not positive semidefinite.