How to fix the error in taking screenshot from a browser?

Hi, I’m seeing this error when I debug my file and i found there’s only one screenshot from edge was saved successfully in my folder, while the other 2 screenshots are not saved, think this might be the reason to give me below error. I was not seeing this error when I only have single screenshot taken.
Does anyone know how to fix this? Thanks in advance!

error

Hi All, above question is fixed. now I have a new issue. I don’t understand why my outlook can only receive the screenshot from Edge browser but not the other screenshots from Chrome and IE? I’ve debugged my file and don’t see any error. Could some of you advise what’s wrong here? Thanks!