Hi Rohit,
The error code you are getting (665) refers to Gateway service name unknown. Can you check the gateway details on the destination and the corresponding in the inboundRA configurations.
Will advise to also check the NWA logs thoroughly if you are getting this error intermittently.
Regards
Subhro