toss it in

Intermediário superior (B2) informal

To stop doing something or quit, especially when you're fed up.

"After three failed attempts to fix the car, he decided to toss it in and call a mechanic."