Org mode version 9.6 (9.6-g30314c @ /home/hubisan/.emacs.default/straight/build/org/)
GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2023-01-03

Have the following org file contents (using emacs -q):

* Heading Lvl 1
** Heading Lvl 2 with VISIBILITY content
:PROPERTIES:
:VISIBILITY: content
:END:
*** Heading Lvl 3
** Another Heading Lvl 2

After using org-cycle-overview (or org-cycle-content) and then using org-cycle-set-visibility-according-to-property I get this:

* Heading Lvl 1...** Heading Lvl 2 with VISIBILITY content...
*** Heading Lvl 3...

If I use :VISIBILITY: children I get this ("Another Heading Lvl 2" is hidden):

* Heading Lvl 1
** Heading Lvl 2 with VISIBILITY content
:PROPERTIES:
:VISIBILITY: content
:END:
*** Heading Lvl 3...

Tried to debug it, but didn't find the cause. Happens after exiting save-restriction.

Best wishes
Daniel