This error was being thrown for me on Linux running:
clojure CLI: 188.8.131.523
The deps.edn file in the directory I was running
clj included four non-clojure dependencies which expanded to
222 transitive dependencies. Additionally I had nine aliases in my
~/.clojure/deps.edn which added additional dependencies to the tools.deps basis.
Alex Miller mentioned on Slack that large basis data could cause this exception and that he would try to address the problem.