I am afraid you have to isolate which slide is causing this
problem.
Quick way to check that will be to check the publish location
(C:\abc for example), check data folder inside it and see how many
slide[slide no].swf (Slide1.swf, Slide2.swf etc.) are generated.
If you find 24 SWF's are getting generated then problem will
be with 25th slide. Delete 25th slide and publish again.