it is not enough that you split the CSV column header to a set of 254 + 1 (or less).
you also need to determine the Fieldtype and Fieldlength, so you can construct the field properly
on creating new table rather than assign them all as Short text.
this is handled on my demo (see the link).