Try clearing all the values by manually entering 0 into each axis in the rotation.
Then, instead of setting them back to values like 90 or 180, try 89 or 179 for example.
Unreal Engine’s built-in rotation system clamps angles weirdly when being entered manually due to floating point errors.