The original lid is broken, but the shaker is still fine? Print yourself a new lid.
I recommend using TPU, I printed this lid with Bambu TPU for AMS with a shore hardness of 68D and it works fine:
Happy shaking :-)
The author marked this model as their own original creation.