OK.
I have solved the issue. And I think the error message is misleading.
The issue was associated with the fact the the Bunch object was array and not an array of lists (when I added the confounds).
After changing that it ran without a problem.
I think it might be a good idea to change the error message (something like - ‘unfit data’ or else).