RefNames consisting of 40 hex characters are not allowed

Hi team,

I am trying to push my gitlab clone repo to Azure devops using git

$ git push -u --mirror
Enumerating objects: 25827, done.
Counting objects: 100% (25827/25827), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6709/6709), done.
Writing objects: 100% (25827/25827), 5.81 MiB | 106.20 MiB/s, done.
Total 25827 (delta 19021), reused 25827 (delta 19021), pack-reused 0
remote: Analyzing objects… (25827/25827) (2636 ms)
remote: Validating commits… (4694/4694) done (1151 ms)
remote: Storing packfile… done (162 ms)
remote: Storing index… done (119 ms)
TXXX(RefNames consisting of 40 hex characters are not allowed.)

I have posted on Azure dev community if there is any workaround to over come this problem and the problem will occur even if we Push from local or add in UI. Is there a solution for this problem without renaming the branches/files?

Thanks