Hello,
Doing functional connectivity on the cortex can be memory challenging. Data reduction should probably be applied before computing coherence (apply function: before and function: mean or PCA here).
For more information, you can check out: https://neuroimage.usc.edu/brainstorm/Tutorials/CorticomuscularCoherence#Coherence_Scouts_x_Scouts