Sketch is not working with Nano perfectly like Mega2560

Have you tried the 10Kohm pull up resistor on I2C bus?