Why does this happen to my mesh when i undo? (see image)

Bug reports

sometimes when i undo, my mesh turns into… this. when i undo a few more times, it goes back to normal, but any tweaks i made on the mesh have also been undone. its pretty inconvenient and i have no idea why it happens.