If you've taken on a role that's too much for you, you've done two things wrong. You've failed at that role. And you've abandoned a role you could have handled well.
If you have assumed any character beyond your strength, you have both demeaned yourself ill in that and quitted one which you might have supported.