SNAP hardware requirements and Tutorials Links toi

You can increase the amount of RAM to be made available to SNAP as suggested here:

In your case, setting -xmax to 8G seems reasonable.
But please be a aware that a PCA can take very long even with high performance computers. Please check the discussion here: Normalized Eigenvalues in PCA

How much bands do you use for the PCA and what are their dimensions?