Same thing happened to me, I know its annoying to reply saying the same thing but this happened to me for gen 6
Exception Details:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at pk3DS.Core.Util.IndexOfBytes(Byte[] array, Byte[] pattern, Int32 startIndex...