AirPods in generally do not seem to be made to last, but I have bad luck with Apple headphones in general. Even before, the wired ones would die on me within a year (usually the left piece for some reason would stop working).
I had to get my AirPod replaced once (also the left one started to fail) and even with the replacement they last about 30 minutes now. My AirPod Pro also had to be replaced before because of the cracking issue. Lesson learned, if I ever do get AirPods again (they ARE convenient) I will add AppleCare+ to them for sure