Quite possible dust or grit got caught in the light-trap. As the film was advanced, it dislodged, hence only a few frames were affected.
I always remember a customer pulling her film out of the bottom of her handbag, covered in all the wonderful things that linger at the bottom; you name it, it was on that film's light-trap! This was only one of a few times I actually removed the film from the commercial cassette to ensure the film didn't get scratched, and placed it into one of our own processing ones. Again, we had to keep these scrupulously clean as well to prevent the same thing occurring when using these too.