Hi Bernadet,
Let's start from the design, as by changing it, the error message may also disappear. The design doesn't show the contrasts but I suspect you're interested on the effect of treatment, and this design isn't appropriate for this. It is possible to put the proper EVs in place and do it, but as commented earlier, an univariate repeated measures ANOVA (with 4 measurements post-treatment) will have more assumptions, and be less powerful, than NPC. MANCOVA can also be considered, and it's easier to run, but it doesn't allow for directional effects and it's less powerful than NPC.
Let's pretend for a moment that you have just 1 scan pre and 1 scan post treatment, and two treatments (drug/placebo), such that each subject has 4 scans total. Prepare a paired t-test for comparing drug vs. placebo, plus the baseline scans as a nuisance voxelwise EV. It seems you have 12 subjects, so this design will have 24 columns.
The error message you received indicates memory issues, so let's further reduce the size of this analysis (it will also run faster): a paired t-test can be replaced by subtractions within-subject, and a 1-sample t-test with sign-flippngs, yielding exactly the same results. So, instead of the above, subtract drug-placebo for post and pre (do it in a consistent order for all subjects), and make the design a 1-sample t-test with additional nuisance. The nuisance is the voxelwise difference between drug and placebo before treatment. Use the option -ise (sign flippings) to test for the intercept in this model, which is the same as testing the difference between drug and placebo at post treatment, while having baseline as nuisance.
Now it comes NPC: repeat the above for each of the 4 post-treatment scans. There will be 4 such input files, one for each post-treatment difference drug-placebo. The design is the same for all: a one-sample t-test with a nuisance variable (voxelwise, baseline), and tested with sign flippings.
The call to PALM will then be:
palm -i 4d_diff_t1.nii -i 4d_diff_t2.nii -i 4d_diff_t3.nii -i 4d_diff_t4.nii -d design.mat -t design.con -evperdat 4d_diff_t0.nii 2 1 -ise -npc -o myresults
You can add other options, such as -logp, or options for spatial statistics as cluster extent, mass, or TFCE (slower to compute, though).
The above will allow testing each IC separately, but not all ICs as a whole (so, no correction for ICs). Although PALM can do it, for this analysis it would require a further generalisation, to do a combination of combinations, and it isn't currently possible. There is a workaround, with a lot of work, though. Try running the above first for each IC, correcting with Bonferroni, and let me know later if you want some extra work to correct across ICs in a different way.
Now, specifically about the error message: it's a memory issue. That offending line pre-computes an array that is used for all permutations, and for voxelwise EVs it can become quite large. The code can be changed, but then the same needs to be computed over and over again at every permutation, which makes it very slow. I guess we'll need to have a solution for this eventually, but with the changes above I expect these issues to disappear (it will use 64x less memory).
All the best,
Anderson