Seeing the exact same mistake. Documentation states:
You may need to update the historically recorded units for these sensors via the statistics page under developer tools
but changing unit of measurement, in developer tools, between TB and TiB “fixes” the problem. TiB shows ‘correct’ measurement, except it now handles the TB value as a TiB, hence the value is now wrong.
In my case I’ve used 8.53 TB, which HA shows as 9.38 TB, whereas changing to TiB shows 8.53, which isn’t the same…