Stability analysis on two thermal insulation problems