@rohit22 That’s recursion - it’s not a bug that needs fixing. It’s also not a Jitsi-specific phenomenon. It’s like putting 2 mirrors in front of each other - you end up with an infinite loop.
The resolution is the user to not show what is being shared by her/him. As @Freddie said there is nothing you can do when you put two mirrors facing each other, the only thing you can do is not put them like that.