Estimate error variance even if X is not full rank