The legend arose during the American Revolutionary War, likely inspired by several real women who supported their husbands and fellow soldiers on the battlefield in various ways. There are a few real people who have been suggested as the inspiration for the Molly Pitcher story, but none are definitively proven.
Therefore, it's impossible to say when "Molly Pitcher" died because she was likely not a real person.