java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
Something took so long that a timeout was exceeded, causing the transaction to fail and roll back.
This is a short series, so it is not too many images. Perhaps it is large images. Perhaps one of the images contains an error.
The log identifies the problem image. Try sending it alone. Try looking at it with some tools.