Im unable to find an option to edit the name for wallet in Bitcoin core.
The proper way to do this is to unload the wallet first in "
File->Close wallet" menu while the target wallet is selected or
unloadwallet command.
You can now proceed to rename the wallet in the 'wallets' folder, then load it again in Bitcoin Core.
If you have pruned your blockchain, doing this may trigger another full IBD as indicated in the pop-up message.