Packing and truncation errors in fields retrieved from spherical harmonic coefficients