Cannot create ParticleModuleRotation cpp class

I’m trying to create a custom rotation module for Cascade Particle System. I can create ParticleModuleLocation, but not Rotation.
Whenever I try to create the CPP class, it throws me a compile error(screenshot) attached.
I tried multiple times, deleting Saved/Intermediate folders and rebuilding in VS. I also tried it on 4.24 and 4.23.
Can someone try this as well to see if this is a general bug?