Please add debug log for the undo/redo stack pruner so we can understand:
(1) if the pruner actually worked periodically
(2) how much memory is released
(3) how much disk space is released
The undo/redo stack pruner is introduced since v15.0
TS-83362 15.0.0 Configurable pruning of the undo stack