When a jellyfish dies, its stinging cells, called nematocysts, begin to break down and lose their potency. The likelihood of being stung by a dead jellyfish decreases as time goes on after the jellyfish has died. However, it is still important to be cautious around dead jellyfish, as some species may still have active nematocysts for several hours or even days after death.
To be on the safe side, avoid touching dead jellyfish or coming into contact with their tentacles, even if they appear to be inactive. If you do happen to get stung by a dead jellyfish, rinse the affected area with saltwater and seek medical attention if the pain or discomfort is severe.