toss it in

中上級 (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."