Pumpkins that are not carved carved pumpkins will stay mold-free for a very long time--weeks longer than carved ones. However, as vegetables, they will eventually decompose. How much longer depends...
Try scraping out the bottom portion of the pumpkin to make it more of an even surface. This should allow the tealight to balance on its own. If not, try...