Ungroup crashes: Gtk-CRITICAL error
<!-- Please report new issues at https://inkscape.org/report; this tracker is for staff-confirmed issues only.
See our full bug reporting guidelines at https://inkscape.org/contribute/report-bugs/ -->
#### Steps to reproduce:
<!-- Describe what you did (step-by-step) so we can reproduce: -->
- open this SVG on Inkscape: [traces_late.t.bud_highlighted.svg](/uploads/8d79cad3377e664a156b284c4d950eff/traces_late.t.bud_highlighted.svg)
- select all and ungroup
#### What happened?
Inkscape crashed, terminal output:
```
(org.inkscape.Inkscape:34264): Gtk-CRITICAL **: 16:31:04.949: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook
(org.inkscape.Inkscape:34264): Gtk-CRITICAL **: 16:31:04.949: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook
Emergency save activated!
Emergency save document locations:
/home/user/traces_late.t.bud_highlighted.svg.2022_12_06_16_31_07.0.svg
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
Segmentation fault (core dumped)
```
#### What should have happened?
Objects should have been ungrouped without crashing
#### Inkscape Version and Operating System:
- Inkscape Version: ... <!-- (run inkscape -V or copy from Help → About Inkscape, top right) -->
- Inkscape 1.2.2 (inkscape@b0a8486541ac36327488da641d58a86bee2f07ad, 2022-12-01)
- Operating System:
- Arch Linux
- Operating System version: 2022-12-04
issue