Handle valueTooLong error when sending text message
This error is non-standard and should not happen if the message size is
calculated properly. However, in case it does still happen (due to a
bug), show a better error message than just "an error happened".