I believe the answer is: Seligman’s learned helplessness
Seligman’s learned helplessness stated that after constantly trying to get out from a problem but fail to find a success, we would automatically develop the perception that our behaviour have little effect to the outcome in our life and eventually make us stop trying completely.