Sometimes episodes comes down as compressed .rar/zip files. Today Sonarr does not know what to do with that. So the Episode in this case is never marked as “done” therefor not added to the db. And remains in the queue forever
If an option could be added to the queue page where one can force an episode to be marked as “done” that would be very nice of you.