The total infrared luminosity may significantly overestimate the star formation rate of quenching and recently quenched galaxies