Rotation in animation not rotating properly

While testing, I saw that the rotation looked glitchy.
I tried fixing it but couldn’t. So I thought it was probably a bug.
I can’t make bug reports so i didn’t know what category i should label it as.

When it started happening:
12/10/2023
7:30 PM
GMT +8

Animation Editor

Testing