CustomPacketPayload size is only checked in DiscardedPayload
The message of the IllegalArgumentException in DiscardedPayload is the following:
"Payload may not be larger than" + maxBytes + " bytes"
From this error message I assume that the check only being present in DiscardedPayload is a bug.