Store RTF text

Store RTF text

I am using Unidac 10.1 with Delphi 11.3.
I am using an inherited component from TcxRichText from Developer Express to store formatted text with RTF in database. I am using MS SQL Server with type NVARCHAR(MAX) on the column.

My problem is that rtf text is cut in database when I save it if size text + formatting is more than 4000 chars. NVARCHAR(MAX) should store up to 1 GB of Unicode text.

I am not sure where to look to solve this problem and I am not sure I can blame UniDac for it. But I can at least ask if you have any ideas or hints to have progress finding a solution.