Playback error right at end of an episode

On most recent plex version on PC and my Samsung TV, episodes stop playing less than a second before the credits and will not restart unless I go back to the beginning. Why is this happening?

Can you enable logging to server in the app on your TV then when it happens again get your server logs.