I’ve certainly taught my share of lessons on “grit” over the years (see The Best Resources For Learning About “Grit”).
In them, I’ve generally included a very short piece on how grit isn’t everything and that sometimes it’s good to quit. However, that’s never been an important part of the lesson.