How to prevent crashing in some android devices due to Rive animation

I am using a Rive animation in my Flutter app, which causes the app to crash on some Android devices (not all). On further inspection, I was able to single out that it was due to the Rive animation.

In my animation, I am not using targets or blending animation, but it does require state management to be triggered by inputs.

Is there a way that we do not need vector graphics, but some pre-rendered raster that can still transition states from triggering inputs in Rive?

Or if not, what is a way in which I can reduce the rendering load and prevent the app from crashing?