Try by lowering the loop, e.g. 100 => 10 if it works fine, then you are hitting a limit somehow, and also try by putting the commit part in the loop and then slowly increasing the loop till 100 (or whatever you like :))
I could not find the Teradata JDBC Driver User Guide. Link is broken, googling it also did not bring any results. I am getting SQLException : "Data size bigger than max size for this type: 4057" on some machines (all Macs), although all machines are using same version of drivers, java and execute same query.