MAJOR BUG. Layers deleted after undo flip canva (Painter 2022/2023)

Several undos after flip canva, all layers are deleted and no possibility of recovery.
(Mac mini M1/Monterey)

Demo video