Writing data to tables

I created an app to test how fast custom widgets can load in data and how fast can i write that data to a table.
I can write to the table no problem up to 2500 characters in a text field but 3000 and up and i get a trigger processing error

This doesn’t happen if i create a variable and fill that variable from a static value, it only happens in my case when i load in multiple rows of data to a custom widget, save the selected row into individual variables for each field and try to write that into a table.

(It also happens when i try to write only the text field into my table and ignore the rest of the fields)

Does anyone know why this could be happening?

Thanks!