only keep the first 4k of the error message

Errors can have messages that are very large. When they are raised, redis space is rapidly depleted.

An example of this problem is an INSERT or UPDATE in ActiveRecord with a very large blob of data. When ActiveRecord fails, it puts the entire SQL statement into the error message.