SoftwareSerial buffer size

I am using Arduino Mega for the master.

So why are you f**king around with SoftwareSerial on the Mega? Connect the other Arduino to TX1/RX1, TX2/RX2, or TX3/RX3 and use the correspond hardware serial instance!