Its really easy for them, and this also in line how they would operate:
Add a new Airtag v2 protocol to the next iPhone and sell new Airtags only using that protocol. Why should you buy them? They could have different improvements you would like.
Start deprecating Airtag v1 in 3-4 years - and only sell new ones. There are now 3-4 iPhone generations that can handle the new version.
The next iPhone in 6-7 years doesn't support Airtags v1 anymore as it is obsolete now for many years.
Voila, they killed Airtags v1 in less than 10 years without killing the entire product line by switching to a new version. Is that unrealistic? No, thats their normal way how they deprecate stuff. It still works but only with old hardware or by not getting new updates anymore (iOS, macOS).