hehe you would have to optimize it as best as you can. remove as many frames as possible (multiple frames that are the same in a row & frames that are not important). I assume you would be downsizing the animation size to fit a scene object or something, which should make the file size for each frame relatively small. Batch converting the animation frames to webp format would further reduce the size of the animation to about 2/3 to 1/2 of png size.
Actually one of the members on here took a video & created is menu sequence with it. I think it was quite a lot of frames, but you'll have to ask him. Simon_ASA & the game is called: ASA: A Space Adventure