Appium+Kotlin: elements are not visible after prompt accepted

I am automating app written on Java Kotlin. After script accepts prompt “Allow app to access this device location?” elements are not clickable anymore. Error in console after some period of time “Failed to open TCP connection to localhost:4723”. After I decreased “newCommandTimeout” from “60” to “1” error is “A session is either terminated or not started (Selenium::WebDriver::Error::NoSuchDriverError)”.

Elements are really visible and selectors are valid, because in case if this prompt does not appear elements are clickable as usual. Also I’ve added explicit wait for sure.

I also automate app written in ReactNative and in exact same place I solved issue via clicking element and following Capybara.accept_prompt.