Failed to execute 'setRemoteDescription' on 'RTCPeerConnection'

Hi there,

after my previous post, I have used the given sendbird calls implementation for my own angular app:

However, with it, I am facing an issue randomly (at least 2 out of 4 times) which I can’t fix myself. It seems to be related to the underlying sendbird implementation.
When I start a call, the call connects as expected (also throws onConnected), however it then throws an error:

Uncaught (in promise) DOMException: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote answer sdp: Called in wrong state: stable

I am not able to debug this any further and would really appreciate any help!
I have copied my current project and striped out all irrelevant files. The link for this is here:

In order to start the call, copy your sendbird credentials into the environment.* files, run the app (ng serve) and then go with two tabs:

  1. Go to localhost:4200/calls/practitioner?video=true (the initiator, userA)
  2. Go to localhost:4200/calls/video (the respondent, userB)

When you start the call using the practitioner’s screen, it’ll work sometimes and sometimes it’ll show the above error. By this, I’m not able to reliably use product.

Any help would be highly appreciated!