SOLVED: OH stops after a day with OutOfMemory

Switch to openHABian master branch and retry if you still really want to do that. I’ve added a fix there.
But before you decide, let me remind you that HW modifications are not at all recommended as they just introduce a whole ****load of new problems and you will have to expect future compatibility problems.
As I wrote the more intelligent way to avoid SD wearout problems is to go ZRAM.

PS: and use code fences please.