Psychological projection
Types

Thoughts of infidelity to a partner may also be unconsciously projected in self-defence on to the partner in question, so that the guilt attached to the thoughts can be repudiated or turned to blame instead, in a process linked to denial. For example, a person who is having a sexual affair may fear that their spouse is planning an affair or may accuse the innocent spouse of adultery.
combination:two_responses