raise error if trying to marshal a value to large for its target allocation