If it’s just the d string, try damping the strings behind the nut in some way. Tie a section of rubber band around the D string behind the nut