Unable to capture elements for android app - Screenshot exception

I’m trying to automate two android apps on Pixel device.
I’m able to capture elements for one app but unable to capture for another.

When I try Record Mobile to capture, it shows me “Unable to capture” and shows “Screenshot exception”.

Any help on this is greatly appreciated.