Increase the size of the error string to 4096 bytes

In some cases, the size of the error log string is not enough, so we increase it from 2048 to 4096.