Calibration of the sensor HSTS016L range 100A

Just a nit, but the ±625 mV is the output, not the error. The V_REF pin can be used to subtract out the ~2.5 V bias correctly, which you have alluded to in the past. As is typical, the datasheet is terrible but the reference pin is described across a few implementations.