Workflow Error while presenting in MS Teams screen sharing

I have an issue, sometimes while running a demo for the client using Microsoft teams sharing screen, my workflows sometimes stop communicating with UI Elements and throw me errors while entering a field on a website. But it will run well if I stop sharing the screen. I check the screen resolution also if it is changing while sharing the screen. Everything is fine. It works mostly 8/10 times.

Does anybody else face this issue?