Original error: socket hang up

Greetings, I have an appium docker image where I run my tests on one device, every time I receive socket hang up error, quitting driver and changing port dynamically didn’t helped. Any workarrounds, solutions, ideas how to resolve it?

java.lang.AssertionError: Initialization Android driver Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized. Make sure the application under test does not crash and investigate the logcat output.