RDS innodb_flush_log_at_trx_commit problem
Complain to RDS.

Meanwhile...

Plan A:  Design code to gather the rows up and do a multi-row INSERT or LOAD DATA.

Plan B:  Put BEGIN and COMMIT around small batches of rows.  (Suggest 1 second or 100 rows or 1MB, whichever comes first.)