Thermal quench study in HTSC pancake coil