2D frame animation lagging

Hello. I am creating a lens for my college project.

So I have to add animation to a painting in my college. For that, I used the image tracking tool and added the animation on top.

The animation is about 8 seconds long and size is about 4 MB. But when I add it to lens studio, so many frames are excluded and the animation looks like it's lagging. I created it in Photoshop using the timeline tool.

How do I fix the lagging. I want it to run smoothly