CSV import?
Has anyone asked why in gods name did they have a CSV file with 32k+ "columns" in the first place?
CSV itself is really not optimal for "large" numbers of columns. I think this farce goes beyond simply abusing Excel. Clearly the task was given to some poor overworked underpaid clinical admin clerk, without anyone realising that they are dealing with a large scale data management problem that should have warranted the services of an experienced database engineer.
"using a nutcracker to demolish a wall" springs to mind.