The situation that you are, which is causing you trouble in processing the right from wrong is intense. I can understand that somewhere you are considering the views of others for yourself and your work than that of your own. Its a natural human tendency, but becomes problematic if it starts guiding your behavior. I would suggest you to focus on what you have done and analyze it accordingly, in terms of the outcome, the satisfaction, and the positive feedback as well as the areas to be improved.
Reacting to those who humiliate you can be done logically or venting out. You can try both and see which one helps you out.
--> venting out will be talking to someone who you think will understand the situation and your feelings associated with it
--> and after that when we come to the logical part, we can see the outward behavior and analyze the situation and challenge our thoughts with evidence. Suppose, if someone says "You're useless". We can choose to live with the tag or alternatively we can challenge the thought by saying "I don't think others opinion or label matters to me, I am doing good so far".
Giving credits to oneself is very important including showing gratitude to others. If someone is humiliating you, you can be assertive and talk to them about how it is making you uncomfortable. Being assertive means standing for oneself without hurting others. Later, when you are alone and start to think, "was he right?, Am I useless?'. You can counter these thoughts by evidence and questioning yourself. For example;
--> why do i believe i am useless?
--> have i done anything to be called so?
You will get some insight to it and either choose to work on the area u r lacking or choose to counter those thoughts with self credit.
For further help, I would request you to connect for a session.