Hi @Xerilon,
Could you share the troubled blend file (or PM me if you prefer to keep it private)? Did not encounter this issue yet, maybe I can put a check there to prevent this from happening.
Due to failed build it is also causing the mess with material duplication/renaming, so we should be able to fix both issues at once.
Thanks a lot!