I'm a Full Stack developer and I've been assigned a soul-crushing project that another developer couldn't finish. The code sucks, the workflow sucks and I've been struggling with it for months (even having to delay the deadline by a couple of weeks because I couldn't finish it, and its also a HUGE learning curve for me because I've never worked with the platform). I'm in tears at the end of every day, and in our daily meetings I have nothing to contribute because I rarely make progress on the project.
I'm really at my wits end. I hate coming to work because I know I have to sit with a project I don't like that just isn't getting done regardless of how many hours I spend on it. The client is getting impatient and roll-out is looming. I also have exams coming up next week and haven't been able to study because this project keeps my mind racing all day and night. I get hardly any sleep because of it too. I have zero motivation to get up in the mornings to come to work. I used to love development but after this project I actually just want to do something else with my life.
How can I approach my boss to ask if someone else can take over without sounding like a brat who just doesn't want to do it?
EDIT: Just had a meeting with my superiors. They were both super understanding of the situation and appreciated my honesty. We have decided to put more hands on deck to assist me with it and take over while I am on leave for my exams so the project doesn't get further behind. Thank you everyone for your kind advice.