The nebula is possibly being produced by a type of unstable star called a Wolf-Rayet star.

Source: James Webb Space Telescope performs brain surgery on mysterious 'Exposed Cranium Nebula'