To relieve internal stresses and enhance the structural integrity of the pipes, heat treatment processes are employed. This may involve quenching and tempering, where the pipes are rapidly cooled and then reheated to a specific temperature.