There are a few threads already talking about oath-breaking oddities, eg:
https://forums.larian.com/ubbthreads.php?ubb=showflat&Number=840643https://forums.larian.com/ubbthreads.php?ubb=showflat&Number=840104https://forums.larian.com/ubbthreads.php?ubb=showflat&Number=840051With respect to getting different results each time you played the encounter, it’s a known issue that a paladin’s oath is only broken when striking the final blow against an NPC and even then perhaps only when they are slain with the main attack rather than divine smite or other non-weapon damage.
Not that killing goblins that attack you should break the oath in any circumstances, but that might explain the fact your oath didn’t break the second time. And the fact that mine didn’t break in this same encounter, despite attacking the goblins. I’m not sure, as it happened before I realised how weirdly oath breaking could act.