Error: Attempted to register a second handler for 'jitsi-screen-sharing-get-sources'

In my project I have a different window when the app launches. This window does not have anything related to jitsi. It has a button that will start the meeting in a different window which has jitsi. When the user Leaves the meeting then we close the jitsi window and open the first window. Now, when I’m trying to open the jitsi window I’m getting this error.

[uncaughtException] Error: Attempted to register a second handler for 'jitsi-screen-sharing-get-sources'
[1]     at IpcMainImpl.handle (node:electron/js2c/browser_init:193:325)
[1]     at new ScreenShareMainHook (C:\Users\mritu\OneDrive\Documents\GitHub\speakout-desktop\node_modules\@jitsi\electron-sdk\screensharing\main.js:37:26)
[1]     at setupScreenSharingMain (C:\Users\mritu\OneDrive\Documents\GitHub\speakout-desktop\node_modules\@jitsi\electron-sdk\screensharing\main.js:178:12)
[1]     at _0x58e4b8 (eval at ./main.js (C:\Users\mritu\OneDrive\Documents\GitHub\speakout-desktop\build\main.js:1:130689), <anonymous>:305:53)
[1]     at IpcMainImpl.eval (eval at ./main.js (C:\Users\mritu\OneDrive\Documents\GitHub\speakout-desktop\build\main.js:1:130689), <anonymous>:390:135)
[1]     at IpcMainImpl.emit (node:events:539:35)
[1]     at EventEmitter.<anonymous> (node:electron/js2c/browser_init:165:11237)
[1]     at EventEmitter.emit (node:events:527:28)