Put these two commands in a command block chain set to repeat every tick.
execute as @a[y_rotation=-360..-180] at @s run tp @s ~ ~ ~ ~360 ~
execute as @a[y_rotation=180..360] at @s run tp @s ~ ~ ~ ~-360 ~
Turn on the chain and look around. Notice how the player arm flicks back into position every so often. There is no jittering effect in f5 mode.
Related issues
duplicates
Comments

This is MC-120545, which existed in prior versions (they fixed MC-4686 but not that). I've updated that ticket to include that 18w44a is affected; I probably should have done so earlier but I'm a bit behind on testing.