LPS-33975 Added content length check for SQL Server

[TECHNICAL-SUPPORT] LPS-33975 Long chat messages not delivered due to SQLServer's indexing mechanism