Error in eigen(corMat) : infinite or missing values in 'x'

This can happen with missing or NA data in working with eigenvectors, generally. It's hard to be sure for this question because without knowing the library, the eigen function could be from {base}, {float} or another package. Also, without representative data, answers are difficult to check. See the FAQ: How to do a minimal reproducible example reprex for beginners.