Mark invalid messages as failed.