Move msgsize santity check into parser