Influence of the heat source location on the stability of the solution to the Cauchy problem