Automatic "mark as watched" with grace period

You might want to take a look at this thread and see if it’s along the same lines as your problem. Plex episode is marked as watched if you cancel playback immediately after episode has started

It’s been running a few days and may be similar so you could add your help to it.