I'm not familiar with the Yanmars, and indeed the problem was likely the filter o-ring.
But here's another thought... Were you motor sailing prior to these incidents? I know that some Bukh diesels will pump their entire oil reservoir into the bilge if they are run at too great a heeling angle..... Given the time between leaks could there be a correlation there??