Apium code is not working for android 6.0.1 Marshmallow but working in Android 5.1

I am running appium script on 6.0.1 but script is getting failed after mob app launched. The same script is executing properly in Android version 5.1

Appium Version: 1.4.16.1
java client: 4.1.2
Java: 1.8.111

Appium Server Log:

info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:13,“value”:“Unknown error”}
info: [debug] Responding to client with error: {“status”:13,“value”:{“message”:“An unknown server-side error occurred while processing the command.”,“origValue”:“Unknown error”},“sessionId”:“b38864be-deb5-4c7a-85fe-ca4b518adeb5”}
info: ← POST /wd/hub/session/b38864be-deb5-4c7a-85fe-ca4b518adeb5/element/1/value 500 123.325 ms - 182
info: [debug] Didn’t get a new command in 60 secs, shutting down…

Appium Script Execution Log:

Exception in thread “main” org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)

The same issue is coming up for me for android 6.0.1. I can start the app but when I try to perform any actions it gives me this error.

Exception in thread “main” org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)

The same script is running without issues in android version 7.

same but try to update appium version 1.8.3