How to keyframe Ocean Modifier Resolution?
As @Gorgious mentioned use the wave modifier. This example has the Speed and Height set as keyframes, but just experiment with all the settings as it depends on what exactly you want.