Communication arduino MODBUS fails on high number of registers
Before you decided to switch platforms, take the time to figure out what your resource usage is. After compiling you'll get a report of the amount of memory you're consuming, check that first.

After that, it would be helpful if you could describe more clearly what you're seeing when the code fails.