Temperature gradient metamorphism occurs in snowpacks when there is a significant temperature difference between the ground and the surface, leading to the formation of weak, faceted snow crystals. This process can increase avalanche risk as the resulting snow layers are less cohesive and more prone to failure under stress.