If Meraki replaces the device with a Z4 because there is no more Z3 in stock, they will replace the license for you. If you replace the device on your own, you have to buy a new license for the Z4.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.