Sketch is not working with Nano perfectly like Mega2560

Why not test with another Nano and see if the problem still exists.
Then we can be sure where to investigate further on.