Dear Aditya,
It is showing both the instance in SM51 means that somehow RQA system is getting connected to message server of PRD system.
if possible , paste the content of DEFAULT profile. Also run the transaction SMMS in RQA system and check the message server host.
With Regards
Ashutosh Chaturvedi