Share screen video freezing

I’m encountering an issue in OpenVidu where, when sharing the screen in a room created with React OpenVidu 2.28 and Kurento Media Server on AWS, the shared screen video freezes while the audio continues to work normally. Additionally, the video sometimes resumes after a few minutes. Has anyone experienced this or knows how to resolve this issue?