Unable to access message 1 from mailbox

How to fix problems with Invalid file data? When accessing webmail, the page shows the count of messages in a folder, but not the messages. Sending and receiving works fine, new messages do appear in Sent folder. Erroneous files can not be removed though web interface, since they do not show up.
Axigen server version: 10.2.2.70 (Linux/x64)

2019-12-18 11:28:32 -0800 02 mail IMAP:000000D9: Unable to access message 1 from mailbox 'jdoe+Sent@icompute.com': Invalid file data
2019-12-18 11:28:32 -0800 02 mail IMAP:000000D9: Unable to get the stream for message [0000000000000943]: Invalid file data
2019-12-18 11:28:32 -0800 02 mail IMAP:000000D9: Unable to access message 2 from mailbox 'jdoe+Sent@icompute.com': Invalid file data
2019-12-18 11:28:32 -0800 02 mail IMAP:000000D9: Unable to get the stream for message [0000000000000BA2]: Invalid file data
2019-12-18 11:28:32 -0800 02 mail IMAP:000000D9: Unable to access message 3 from mailbox 'jdoe+Sent@icompute.com': Invalid file data
2019-12-18 11:28:32 -0800 02 mail IMAP:000000D9: Unable to get the stream for message [0000000001002DA3]: Invalid file data
2019-12-18 11:28:32 -0800 02 mail IMAP:000000D9: Unable to access message 4 from mailbox 'jdoe+Sent@icompute.com': Invalid file data
2019-12-18 11:28:32 -0800 02 mail IMAP:000000D9: Unable to get the stream for message [0000000001002DAD]: Invalid file data
2019-12-18 11:28:32 -0800 02 mail IMAP:000000D9: Faulty message found on mbox with ownerid = 127 and id = 357

Hello,

You may run the below CLI commands to scan for invalid messages in your domain:

<#> update domain YOUR_DOMAIN
<domain#> findinvalidmsg * purge

Regards,
Florin