Hi @Hersh , remember put a reporducible example of data for better help you, like this dput() or reprex And script for replicate the situation.
dput()
reprex
Check this documentation for know more about PCA