Open XML SDK has a validator component, so you can check if your word, spreadsheet or presentation file is valid according to the standard. Open XML SDK is however in C# language. Apache POI is the Java equivalent and it seems to be missing a validator component to support the full data lifecycle from creation to either deletion or archiving (you have to validate before you can archive), if you want to archive the functionality of the data instead of making a static image file, which would only preserve information. I file this has an enhancement.
I'm afraid that noone is likely to volunteer to write this. POI is not the Java equivalent of Open XML SDK. POI is an OSS volunteer project. Open XML SDK appears to be built by Microsoft employees who are paid for the work they do. Possibly, you might be better off asking Microsoft to create a Java version of Open XML SDK. With POI, all you can so is to use one of the existing APIs to parse the file and see if there are any exceptions.
In a Microservices architecture, you can run some services in .NET and some in Java - so you could have a web service that uses Open XML SDK to validate files - while also having Java based web services that use POI if that's what is needed.
depending on their pipeline, it should be possible to wrap the binary with a JNI call interface if it needs to be embedded in a java execution context. additionally, C# and java are close enough that porting the lib (if the OP has the resources to do such) should be "non-terrible"