I've the same problem. (5.0.6 - 589) In my case I'm editing simple html files saves on my local hdd.
As far as I can remember it's mostly corrupting a single "</div>" in a line. I can't force this problem. It's happening randomly. -- <https://forum.pspad.com/read.php?4,76932,77460> PSPad freeware editor https://www.pspad.com