Estimation of the error on the calculation of the pressure-strain term: application in the terrestrial magnetosphere