Error Propagation from Integral Moments and Spectral Derivatives of Stokes Profiles to Magnetic Observables