Consider the difference between "quit" and "exit".

It's very easy for a child to say it's too hard and want to quit. Immediately. However, a parent can respect the child's desire to stop and avoid a potentially damaging "quitting" pattern.

"I understand you don't want to take piano lessons any more. I can accept that. You don't have to take piano lessons forever. If you still want to stop taking lessons when you finish this book, then we will stop piano." (Finish the book could mean get through a page, or learn selected pieces)

When my son is struggling and gets to the "I want to quit now", and I say "yeah, you can quit AFTER you master the skill you're struggling with right now" the predictable result is he masters the skill and decides he "LOVES" the activity and it's "fun" and "easy". 🙄