If the target creature is an illegal target as Nibelheim Aflame tries to resolve, it won't resolve and none of its effects will happen. No damage will be dealt, and you won't discard and draw even if you cast Nibelheim Aflame from a graveyard.