Cannot install ocaml 4.07.1 (multiple definition of `caml_debug_info')

That’s a know issue (see https://github.com/ocaml/opam-repository/issues/16538 for the issue on the opam-repository and https://github.com/ocaml/opam-repository/pull/16583 for the fix, which should be merged soon I think).
Meanwhile, you can take a look at this thread : Opam switch create and gcc10 for a manual solution.