Here are a few tips to prevent your AirPod case lid from breaking in the first place:
Be careful not to drop your AirPod case.
Avoid putting too much pressure on the lid.
Keep your AirPod case clean and free of debris.
Store your AirPod case in a safe place when you're not using it.
See more: https://barcodelive.org/how-to-fix-airpod-case-lid