Wow. I have the same problem. I just got my left AirPod Pro replaced at the Apple Store last wednesday because of rattling. (It appears to only happen in noise canceling mode. When noise canceling is off it doesn't rattle).
A couple days later I started to notice the right airpod is rattling.
I've used up my warranty now so would have to buy a new pair if I want this fixed.