Convergence Analysis of Flow Matching in Latent Space with Transformers