is there?
No, there is not. If you got it from a friend, though, you could trade it back and ask them to change it for you.
As of gen 8, you can actually rename a Pokemon that you were traded IF it doesn't already have a nickname.
Source: Experience
You can use a cheat code that lets you change traded Pokemon's name if there is one, or go with the other answer.