Those memories of cloud being killed by the dragon were completely fabricated. Cloud never saw Zack fight a dragon, he filled in the blanks.