That is extremely bizarre.
I am sorry that happened to you.
I would suggest going in with the expectation that you will confess your sins, receive absolution and a penance, and will not receive any sort of yelling or dressing down from the priest.
I would also suggest that if something bizarre does occur, this time you won’t be so caught off guard. You can calmly say, “Father, those aren’t my sins, here are my sins…” and then if for any reason absolution isn’t forthcoming, say, “Father, will you please give absolution and a penance now”.
If worst comes to worst, just remember that it isn’t personal against you, priests are human too, and you have nothing to be SCARED of. Just ask for absolution and penance.
If bizarre behavior continues, I suggest you talk to him outside the confessional. It’s a huge problem that he is going on about someone else’s sins in the confessional with you. He should make no presumptions that he “recognizes” someone by their voice.