Question: how to change a pokemon's name in pokemon sword?
Answer: In Pokemon Sword and Shield, Name Raters are found in all Pokemon Centers, and they also double as Move Deleters and Move Rememberers. Talk to the Name Rater and ask to change a Traded Pokemon's Nickname. You will be able to do so, but after changing the Nickname once, it will be permanently set.