If you are stuck in a frustrating situation and cannot improve the situation because of the "system", then you need to quit. The earlier you quit, the less it will hurt. Frustrating relationships (job, partner, ...) are extremely bad for your health.
Quit, and learn the lesson! With a positive mindset, you will be grateful for what you learnt. If you quit a frustrating job, try and find out your where your passion is so that you will not repeat the same mistake again.