I have a story where I want to make realistic characters, so I was thinking of making them act out-of-character at times, but I am not sure if that would lead to inconsistency, and how to do that while ensuring they won't make my readers feel mad or frustrated.
I was told that human beings are complex, but that doesn't mean they should necessarily be inconsistent, and that inconsistency within a character can be very interesting and complicated, but that you have to be careful about how you do it so that it still makes sense or that you'll end up annoying the reader.
So because you don't want characters to be archetypes that are super-simple, you should maybe add inconsistencies, but how do you do that so that it makes sense and that it doesn't end up annoying your readers?