apologies for the reply to an ancient post...
Basically someone at the BBC/Netflix/Prime Video etc. should have watched the programme and decided when is a safe point to squeeze the credits without ruining anything important during or after them.
Wouldn't that have been documented (for BBC programmes at least) at the time of production so that Playout knew not to squeeze it? Is that documentation not kept or not referred to for the iPlayer version? Of course its far more likely the entire operation is automated.
It certainly didn't used to be - when I worked in media management, one of the things I had to do was enter a timecode for the start of the end credits into the playout database. I didn't quite realise the importance of that metadata until I was home watching a programme I'd ingested, and thought that the announcer came in a bit abruptly after the programme. Turned out that the automation had gone by my timecode. I made sure to leave a bit more breathing space from then on.