The 500mA in the datasheet refer to a pulse of 1ms with 10% duty cycle, which corresponds to an energy of 1ms * 0.5²A² * 0.5ohms = 125µJ, which heats the component, but which can cool down in the following 9ms of the duty cycle.
The 40nF capacitor only stores an energy of 218nJ at 3.3V and loses about 216nJ in the first 48ns with the typical switch-on resistance of 0.5 Ohm until it reaches a current of 0.5A and a voltage of 0.3V.
I don't see any issue if you repeat that with a max frequency of e.g. 200Hz.
If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.
Good luck!
/Peter
In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.