Hi Kaushik,
You can not cancel the GR if stock is cleared through quality module, unless you develop a Zprogram to reverse the UD.
for your issue - Post the return delivery for the wrong GRN, PO will show the returned qty as open quantity. and then post the new grn with correct qty.