Rotation simplification


I am making a cube rotate by 90 degrees on one axis, many times. It can be any axis, depending on the game situation.
But sometimes this cube rotates on the wrong axis.

I have noticed that Unreal “simplifies” the rotation of actors. Example of the same rotation in the world:

• Math correct: -90, 0, 270
• Unreal simplified: -90, 180, 90

Can this unreal simplification be the cause of this wrong axis rotation? Is it possible to disable that feature?

Did you ever find the cause of this? I am seeing the same issue.