Truncate error message to 10k, #1843