Retina 0.8.2, 2929 23 bytes
^
aaabbbbac$
O`c|..¶aaabbbbac
cc|(D`c|..)\1
1A`
Try it online!Try it online! Link includes test cases. Explanation:
^$
aaabbbbac¶aaabbbbac
AddAppend another copy of the whole list on a separate line.
O`c|D`c|..
Sort theRemove duplicate elements from the copy.
cc|(..)\1
1A`
Delete duplicates. Fortunately it's not possible to match at an odd positionRemove the original input.