Steps to Reproduce
Launch a world with cheats
Spin a bunch of full circles by moving the mouse right
Press F3+C to copy the location
Observe that the Y rotation component is much larger than the actual bound of -180..180 as found in the F3 screen.
Linked issues
Comments

Second one is definitely related, if not the root cause.
Affects 1.20.1 aswell
Do either MC-120545 or MC-121855 have something to do with this?