Hallo Raghav,
In your Pythia reader you have to select only stable particles to be transported i.e.:
ncols = fscanf(fInputFile,"%d %d %d %d %d %f %f %f %f %f %f %f", &nLev, &pdgID, &nM1, &nDF, &nDL, &fPx, &fPy, &fPz, &fE, &fVx, &fVy, &fVz);
if(nLev==1) primGen->AddTrack(pdgID, fPx, fPy, fPz, fVx, fVy, fVz);
otherwise you can have the case that Geant4 does not know your intermediate particle and thus cannot transport it. In case you need to have the intermediate particles in your stack without transporting them, this is possible but this is another topic now. (In Panda they use this option)
regards,
Mohammad