Parallel access to binary file

We run tests on cimg/openjdk:13
Tests are ran using mvn parallel jobs with browserstack

We are using Browerstack Local, this requires access to a binary file.
We are getting the following error randomly when running parallel tests trying to access same binary:

com.browserstack.local.LocalException: Cannot run program “/home/circleci/.browserstack/BrowserStackLocal”: error=26, Text file busy

Anyway we can resolve this?

I have a similar issue, I have Junit5 Tests that run in parallel part of a Gradle Build and I see random

.browserstack/BrowserStackLocal”: error=26, Text file busy

errors, I tried to add some retry mechanism, but didn’t seem to help.