Thanks for your posting and using Aspose.Cells.
We were able to observe this issue by executing your sample code with your sample excel file using the latest version: Aspose.Cells for Java (Latest Version) and found, the code throws exception as per your description.
This issue has been logged as
- CELLSJAVA-42231 - Exception occurs on inserting rows
Here is the exception generated by the code for a reference.
Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 1050217 at com.aspose.cells.zbfc.b(Unknown Source) at com.aspose.cells.zbeq.b(Unknown Source) at com.aspose.cells.zbeq.f(Unknown Source) at com.aspose.cells.zh.i(Unknown Source) at com.aspose.cells.zbeo.a(Unknown Source) at com.aspose.cells.zif.a(Unknown Source) at com.aspose.cells.zif.insertRows(Unknown Source) at ClsAspose.f1(ClsAspose.java:65)