Just a suggestion but it has been three years since the last opam release. The version currently on opam is not compatible with OCaml 5.