The latest grid2op version (1.12.3) changed the default flag from False to True in
grid2op/grid2op/Backend
L 203
self._prevent_automatic_disconnection: bool = True # Was false with 1.12.2
While this is probably a wanted behavior, pypowsybl2grid did not account for this and is missing the attribute self._prevent_automatic_disconnection, and inherit this from the Base Backend class.
We need to allow detachments (and automatic disconnection) so add self._prevent_automatic_disconnection: bool = False in the init of the backend.