:zip.foldl() returns a :data_error when calling the GetBin function

There’s a typo in your example. It should be:

:zip.unzip(String.to_charlist("path/to/my.zip"), [:memory])