Samsung S21 Ultra freeze issue during track stopage

For some reason stoppage of stream track (https://developer.mozilla.org/enUS/docs/Web/API/MediaStreamTrack/stop)
causes complete freeze of browser.

Issue is only reproduced in Samsung S21 device (works fine in S20 and others for example).

Has anyone face this issue and what can be done in this case.

Thanks in advance