Subject Execute Block: too many inserts

I dynamically create Execute Block statements to insert many rows of data. For example, one attempt has over 500 Inserts, which fails. I suspect some kind of limit has been reached (memory, or number of commands).  What is the best way to accomplish very large batches?