I did some further testing and noticed that there is actually 85,000 byte limit in MODX recources content field (running Evo 1.0.5).
MySQL max lenght for MEDIUMTEXT is 16,777,215 bytes so this must be MODX related issue. Any help how to fix this?
PROBLEM SOLVED:
My bad.. It was our crappy ISP and their Suhosin security extension that was limiting string lenght to 85,000 characters.
There is nothing wrong in MODX