An item with the same key has already been added

Unfortunately I can’t reproduce the issue with the steps you describe. I agree with @joseph - it sounds similar to the thread he linked to. You could try using the patched Settings.cs from this post and see if it helps?