[MJSONWP ] Encountered internal error running command: StaleElementReferenceError: Element does not exist in cache

I’m unable to replay my scripts on iOS Simulators, whereas same works on Android emulators.

Appium: 1.16

Simulator capabilities are as below
capabilities = {
** “platformName”:“iOS”,**
** “platformVersion”:“13.3”,**
** “deviceName”:“iPhone 11 Pro Max”,**
** “automationName”: “XCUITest”,**
** “browserName”:“Safari”**
** };**

Output: Browser gets launched in iOS Simulator and even application login page appears but fails to enter username/password with stale-element reference execption

I referred to below issue but didn’t help

Below are my appium console logs
https://anotepad.com/notes/b94j6fbn