Carved pumpkins usually start to rot within days of carving.
As mentioned before, more than 90% of the pumpkin gets carved off for these pumpkin projects. These parts also contain the pumpkin's moisture.
You can try rubbing petroleum jelly to help prevent molding and decay. However, it could make marker-based designs easily erasable compared to a shell that doesn't have jelly.