Partial least squares (PLS) shuts down

Dear community:
I have been trying to run PLS with 11 events from each process A and B corresponding to finger tapping left or right a key of the keyboard. Still I don't know if it's a memory issue. Matlab shuts down!! What can I do?

Is it even a good number of events?

To verify if it is an RAM issue, open the Activity Monitor (in macOS) and see the memory usage while running PLS.

Are you able to follow the PLS tutorial steps without any trouble?
https://neuroimage.usc.edu/brainstorm/Tutorials/PLS

I will try and let you know.