Scripting to create multiple subjects

Hi

I'm averaging EEG responses across subjects and then two groups. I'm not sure how but a couple of my subjects have been given extra channels which led to an error in the process (in first screenshot, 8 warnings) (I think possibly when I ran the EEG acquisition I selected 256 channels to be saved instead of 128 for these two). I originally imported the Biosemi 128 A1 template (using a script to import for all subjects). This gave the other subjects 144 channels (the extra 16 channels were not used) but for two subjects there are 272 channels. I manually deleted the additional 128 channels for both subjects and re-ran the averaging process. I then got the second error message below (4 warnings). Could you advise how I can fix this?

image

image