In short - Azure Batch does not support using a storage account with Hierarchical Namespace (i.e. ADLS Gen2) for certain features. According to Microsoft Learn (https://free.blessedness.top/en-us/azure/batch/accounts), you can't use the Application Packages or Azure storage-based virtual file system mount features with Azure Storage accounts configured with firewall rules, or with Hierarchical namespace set to Enabled.
If a storage account has Hierarchical Namespace enabled, certain Batch features are not supported (namely Application Packages and the virtual file system mount). However, a storage account with HNS enabled can still be used for storing input, output, resource files etc., except for those unsupported features.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin