In a compressed spring the molecules are under stress due to the elastic potential energy stored in it. When the acid dissolves the spring molecules the P.E. stored in it is converted to K.E. and the new molecule it forms with acid ion has this extra K.E. Due to this the temperature of the acid increases slightly. It means that the elastic potential energy is converted to heat energy.