diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py
index 26d4a817cdb7f834cd3cfc12c7238296cf2baa93..59f821463e621f443dcd497b650c891980bee7c4 100644
--- a/swh/model/hypothesis_strategies.py
+++ b/swh/model/hypothesis_strategies.py
@@ -129,7 +129,7 @@ def contents(draw):
 
     return draw(builds(
         Content,
-        length=integers(0),
+        length=integers(min_value=0, max_value=2**63-1),
         sha1=sha1(),
         sha1_git=sha1_git(),
         sha256=binary(min_size=32, max_size=32),