Improve some error reasons when parsing invalid packets.