Generalized uncertainty relation between thermodynamic variables in quantum thermodynamics