[Browserstack] Getting org.openqa.selenium.WebDriverException: java.lang.ClassCastException: on every Appium Operation like click, isDisplayed, wait or any other operation

I am getting this error while performing any operation and if it got fails then I got this:

This is happening only when I am running tests on Browserstack, Locally it is working fine.
org.openqa.selenium.WebDriverException: java.lang.ClassCastException: class java.util.LinkedHashMap cannot be cast to class org.openqa.selenium.WebElement (java.util.LinkedHashMap is in module java.base of loader 'bootstrap'; org.openqa.selenium.WebElement is in unnamed module of loader 'app')
Build info: version: '4.22.0', revision: 'c5f3146703*'

I tried looking into older issues but couldn’t able to fix.

My version are as below:

In my Appium logs it is throwing correct exception but in my console I am getting the above exception.
Here are my Appium logs:
Appium logs (3).txt (117.7 KB)

What could be the possible issues here? Thanks in Advance

This got fixed after having the discussion with Browserstack team. We need to add this in caps:

    "bstack:options": {
        "noBlankPolling": true