The cause of this problem was indeed the fact that there was a .git directory inside the mercurial repository.
The way I solved it was running hg convert
with a filemap excluding the trouble directory before doing the fast export conversion.
Hope this helps someone in the future!