Within every single Pokemon Center in The Galar Region, you will find the Name Rater behind the far left counter. Like previous Mainstream Pokemon Games, he will allow you to change the name of any Pokemon you have previously captured, whether they have a nickname already or not. However, unlike past Pokemon Games, the Name Rater will now allow you to nickname Pokemon you have received from other trainers as long as they don't already have a nickname.
We have questions and answers related to this topic which may also help you: