In ModbusRtu.h:
#define MAX_BUFFER 64 //!< maximum size for the communication buffer in bytes
27*2=54 bytes for registerregisters and 10 for header and crc.
Change the MAX_BUFFER define. On Mega you have enough RAM.
btw: RS485 doesn't imply mandatory use of Modbus. You could use your own protocol.