New ticket notification sent, but ticket not available

We do experience issues with RT 4.2.10 version.
Got email notification, the ticket got created after email was received.
This ticket is not available in RT database. Within webUI we got error “Could not load ticket 11378”. No errors in PostgreSQL.

This is the error from rt-mailgate:

Jul 19 08:24:26 rt-server postfix/local[15728]: 7B38615C7: to=<rt-input@example.com>, relay=local, delay=0.44, delays=0/0.01/0/0.43, dsn=4.3.0, status=deferred (temporary failure. Command output: RT server error. The RT server which handled your email did not behave as expected. It said: Modification of a read-only value attempted at /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm line 291. Stack: [/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm:291][/opt/rt4/sbin/../lib/RT/Scrips.pm:296][/opt/rt4/sbin/../lib/RT/Transaction.pm:211][/opt/rt4/sbin/../lib/RT/Record.pm:1693][/opt/rt4/sbin/../lib/RT/Ticket.pm:536][/opt/rt4/local/plugins/RT-IR/lib/RT/IR.pm:959][/opt/rt4/sbin/../lib/RT/Interface/Email_Local.pm:1441][/opt/rt4/share/html/REST/1.0/NoAuth/mail-gateway:61] )

The only local modification we made is to hide the sensitive information from email headers:

~# diff -u /opt/rt4/sbin/../lib/RT/Action/SendEmail.pm
/opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm
--- /opt/rt4/sbin/../lib/RT/Action/SendEmail.pm 2015-04-23
10:51:37.000000000 +0200
+++ /opt/rt4/sbin/../lib/RT/Action/SendEmail_Local.pm   2015-11-06
15:26:35.266900986 +0100
@@ -604,8 +604,8 @@
     $self->SetHeader( 'X-RT-Loop-Prevention', RT->Config->Get('rtname') );
     $self->SetHeader( 'X-RT-Ticket',
         RT->Config->Get('rtname') . " #" . $self->TicketObj->id() );
-    $self->SetHeader( 'X-Managed-by',
-        "RT $RT::VERSION (http://www.bestpractical.com/rt/)" );
+#   $self->SetHeader( 'X-Managed-by',
+#       "RT $RT::VERSION (http://www.bestpractical.com/rt/)" );

 # XXX, TODO: use /ShowUser/ShowUserEntry(or something like that) when it would be
 #            refactored into user's method.

~# diff -u /opt/rt4/lib/RT/Interface/Email.pm
/opt/rt4/lib/RT/Interface/Email_Local.pm
--- /opt/rt4/lib/RT/Interface/Email.pm  2015-04-23 10:51:36.000000000 +0200
+++ /opt/rt4/lib/RT/Interface/Email_Local.pm    2015-11-06
15:29:14.034311319 +0100
@@ -1033,8 +1033,10 @@
     my $scrip_id = ( ref $args{'Scrip'}? $args{'Scrip'}->id :
$args{'Scrip'} ) || 0;
     my $sent = ( ref $args{'ScripAction'}?
$args{'ScripAction'}->{'_Message_ID'} : 0 ) || 0;

-    return "<rt-". $RT::VERSION ."-". $$ ."-". CORE::time() ."-".
int(rand(2000)) .'.'
-        . $ticket_id ."-". $scrip_id ."-". $sent ."@". $org .">" ;
+#   return "<rt-". $RT::VERSION ."-". $$ ."-". CORE::time() ."-".
int(rand(2000)) .'.'
+#     . $ticket_id ."-". $scrip_id ."-". $sent ."@". $org .">" ;
+    return "<". $$ ."-". CORE::time() ."-". int(rand(2000)) .'.'
+      . $ticket_id ."-". $scrip_id ."-". $sent ."@". $org .">" ;
 }

 sub SetInReplyTo {

This is the error from RT:
Jul 19 08:24:26 rt-server RT: [26865] Transaction not committed. Usually indicates a software fault.Data loss may have occurred

The similar errors were shown at that time on webUI when updating some tickets.
The only scheduled job at that time can be rt-fulltext-indexer which
run every 5 minutes.

Any thoughts what can the root cause be and how to fix it?

Peter