I apologize in advance if this is common knowledge, but I did not realize an R module was required to be able to run picard CollectMultipleMetrics until burning through several days of computing time. I also struggled a bit to find the modules/compilers necessary to run BLR on my university's high performance research computing cluster, and the following worked in my case, hopefully this can save someone else unnecessary trial-and-error. I also had to set the locale to UTF-8:
module load Anaconda3/2023.07-2 WebProxy GCC/7.3.0-2.30 OpenMPI/3.1.1 git/2.21.0-nodocs Mamba/23.1.0-4 R/3.5.1-bare
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8