The input rotation angle is invalid. This typically occurs if a rotation angle of 0 or 360 degrees is specified. Since these values are equivalent to basically not rotating the raster at all, they are disallowed. Note that this rule is applied to any other multiple of 360 (720, 1,080, and so on). In addition, the smallest rotation angle that can be specified is 0.000001 degrees (one-millionth of a degree).
Do not use a rotation angle that is 0 or any multiple of 360. Also do not try rotating by extremely small values.