Hmm. It's the first time we've seen this, but it could be related to the xf_error_log table and the fact that the field we're trying to change here may contain a significant amount of data in some cases.
You could increase the PHP memory_limit
to account for this or what might be easiest is just to empty/truncate that specific table if you feel there's no information logged in there that you might need.