Every time someone posts a topic or reply a 500 error appears

and after updating the message of the posted answer or the topic appears
What can this be?

in the logs, shows it

and error is so strange, because I reviewed everything and I can’t know why it happens