As we chatted about in office hours, this is related to Retool's prepared statements
Some options are:
Using Gui mode whenever possible
Converting the bulk insert into a single insert & using JS to loop through your records to insert
Disabling prepared statements (Disabling prepared statements can break other queries, and it has security risks. If you choose this option, we recommend making a copy of your resource where one still has prepared statements enabled so that your other queries continue to work and you can limit the risk)