Perfectionism and nihilism are thematically related.
Both have a core belief of roughly "anything that's not perfect isn't worth doing."
Nihilism adds in "the world isn't perfect so it's hopeless".
Both are erroneous reasoning because of a smuggled infinity of perfection being achievable.
Once you embrace that perfection isn't possible, you can lean into making as much good happen as you can.