Assessing the estimation of nearly singular covariance matrices for modeling spatial variables