Could you share the IDE logs? You can upload them to our internal storage via https://uploads.jetbrains.com/. Kindly make sure to provide the upload's ID.
Also, please, try turning off the integration via Settings | Tools | Terminal | Shell integration and let me know if it changes the behavior. Please check the Documentation for further information. Thanks in advance!