"Mysql has gone away" heavy multiple insert
I usually blame the size of your MySQL Packet

I have written past posts on this


Sep 01, 2011 : MySQL server has gone away obstructing import of large dumps
Sep 25, 2011 : Fixing MySQL errors recorded in error logs
Jun 12, 2012 : MySQL Error Reading Communication Packets


Just raise your MySQL Packet size (max_allowed_packet) in /etc/my.cnf

[mysqld]
max_allowed_packet=256M


and restart mysql