Same thing happened to me I paid TD accidentally from RBC. Had to go into branch and yell at TD branch manager. Still took about a week for the money to come back to RBC once manager had approved. Good luck!
The individuals in both branches have been really eager to try and help but don’t seem to have the tools to resolve it.