Thanks for raising this. In this case, it's a bug in the underlying OpenFGA SDK.
In the OpenFGA Java SDK, a new executor is created on every call to BatchCheck, but never shut down.
The OpenFGA team is tracking it here, and have a PR with a fix for it that should be merged soon.
As this is a bug in the library, I would suggest closing the question here and following the linked issue for updates.