Similar problem with essentially the same solution. Just cross-posting it here in case it helps anyone: Julia 1.9, same depot with different machines?
There is also the environment variable JULIA_MAX_NUM_PRECOMPILE_FILES
, which someone in this forum suggested to set to a higher value (e.g. ~50) if disk space is not a big issue. It does seem to help in my case (heterogeneous cluster machines) to reduce the number of potential (re-)precompilations.