Episodes replaced by Sonarr, and I get a lot of "missing" and duplicates

Got a problem, my library has episodes replaced by Sonarr, and I get a lot of “missing” and duplicates for episodes I had.

I am not sure why that’s happening.
I’ve removed the library folder and re-added, rescanning it and I still get this, with every episode Sonarr replaced, with a better version.