kcm: Add memory limit for receive message construction