Artwork that needs, and should be preserved. Some hours of skill and talent have been invested here
I guess that dessication of the pumpkin would be a major problem, which would lead to major cracking and breaking up. Fungal growth could be a problem as well.
A water based sealant, which when dried or cured, could stabilise the remaining moisture content.
Experiment on a non carved slab of equivalent thickness first.