は、自分が

… thinks that they themselves …

→ は
phrase Rare #32,582
… thinks that they themselves … は marks the topic, and 自分が refers back to that topic as the subject. The English pronoun depends on the context.
JA: 彼は、自分が間違っていたと認めた。
EN: He admitted that he himself was wrong.

トムは、自分がかっこいいと思っている。

Tom thinks he is cool.

この女性は、自分が何を欲しいのか知らないことをちゃんと知っている。

This woman knows full well that she doesn't know what she wants.

メアリーは、自分がすると言ったことを実際にしなかった。

Mary didn't actually do what she said she would.

自分の靴の具合の悪いところは、自分が一番よく知っている。

I know better than anyone what’s wrong with my shoes.