Restart your appium server, due to some timeout issue appium session getting as error hence apk file doesn't install properly https://natasatech.wordpress.com/2024/12/20/how-to-install-apk-file-emulator-android-using-appium-desktop-appium-inspector/