There is definitely no shame in quitting a job that's toxic to your well-being.
This article gives 6 good reasons you should be able to quit your job without feeling any shame or guilt.
I tried everything to make my tech-temp job work but after 2 months, the toxic work environment due to being marginalized, belittled, and sabotaged was enough for me to tell my temp agency in detail via a complaint report along with forwarding them my completed work, that enough is enough, I deserve to be treated with respect as a temp in a workplace. Toxic work cultures are bad for one's health.