This encodes the collision's referenced colliding hashes into hex within the instanciation of the HashCollision exception.
Note that it also moves the HashCollision exception to the `swh.storage.exc` module.
Related to T2332#42793
Impact:
- swh.journal: retry behavior which puts aside colliding hashes