Yes, there is a word for when a person is not aware that they are doing something wrong: "unaware" or "unconscious."
When someone is unaware, they lack knowledge or consciousness about a particular issue, action, or consequence. This state of unawareness might be unintentional or due to a lack of information or understanding about the situation at hand.
In some cases, the term "unconscious" is also used to describe a person's lack of awareness regarding their actions or behavior. However, it's important to distinguish this usage of "unconscious" from its psychological meaning, where it refers to thoughts, feelings, or desires that are hidden or repressed from one's conscious awareness.
In everyday language, if someone does something wrong without realizing it, we might say they are "unaware of their mistake" or "unconscious of the consequences of their actions." It's essential to approach such situations with patience and understanding, as the person might genuinely not know that what they are doing is incorrect or harmful. In such cases, gentle and constructive feedback can help raise awareness and facilitate positive change.