Another fix was added to the future 4.26.2. You can find it on Github here:
https://github.com/EpicGames/UnrealEngine/commit/4c05d389ccc0bfc4137ab8981346dee4626d78f9
(Previous fix: https://github.com/EpicGames/UnrealEngine/commit/416b5afc844f7b732920f53a27f64a5fa951d822)
Replace operations un UMG were causing the widget to not being properly deleted and the undo of a replace operation was not working properly.
Another fix will be added to try to repair the widget and prevent data from being lost when this kind of thing happens.
Vinz