Cordova.plugins.diagnostic causes android app to crash when playing videos

In our ionic app cordova.plugins.diagnostic plugin is used for reading bluetooth permissions .
Strangely there is a issue due to this plugin where it causes the android app to crash whenever a video tag is used . ios and web application works just fine.
When this plugin is removed the android app plays videos fine

Plugin version:
“cordova.plugins.diagnostic”: “6.0.2”
@ionic-native/diagnostic”: “5.30.0”