My team is dealing with the exact same error.
The solution is to downgrade back to <=mamba=1.5.11
Mamba 2.0 upgrade changed the interactive module and nextflow 24 is still assuming the same connection to mamba as conda. they are mostly the same. (but might not be the case for mamba>=2.0)
Here is another reference from another team: mamba env create stalls · Issue #5625 · nextflow-io/nextflow · GitHub