This was a problem with the Data Size for the pcms2_contents.ContentValue column. that column has a Text Data type which has a max size of 65,535 bytes. The content you adding to the E-D content are was just above that limit causing closing togs to be lost.
I changed the data type to Medium Text which has a max size of 16,777,215 bytes to prevent the problem from happening again.


