I guess the images explain everything.
The eyes are parented to the eye rig bones so that they rotate freely if the eye bones are rotated. The eye bones are parented to the head bone.
How can I solve this issue?
https://pasteall.org/media/a/e/ae654d3ced8f57dc8ed5afb639eff4e5.blend