How to prevent app crash if plugin crashes

I am using Ionic V3.20.0
The native camera plugin V^4.20.0

The issue I am facing is in some android devices app crashes as soon as camera gets opened.
And it does not print anything in the logs.

What I want to do is prevent app from crashing, so I tried adding the code to try-catch block so if there is any exception I can handle it and allow user to add images using gallery only.

But the try-catch is not working as control doesn’t come to catch so is there any way to prevent this thing.

I can add code block you guys need it.