I was using verison 5.2.4 and it ws giving the same error. Using version 5.2.3 solved it for me and this is the only dependency I'm using
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.3</version>
</dependency>