Thank you for your messages.
I will explore the PCA alternative and report it here.
Regarding the memory issue, when I ran with either in CPU or GPU it always needs to allocate 27.1GB of resident memory. I can run it on the CPU because I have enough RAM memory to fit this 27.1GB, which is not the case for the GPU.