I may be trying to compare yourself to mine a couple of years back, so apologies if I am wrong.
More often than not I see students approach studying in college/universities the wrong way. Everything starts revolving around grades "oh as long as I pass it's fine" or "X person got X grade". If you're studying for the sake of passing or just grades it's pretty obvious that your goals are really short-sighted. Because fundamentally these things won't matter as time goes by (This depends on the country as well, but in my case it didn't matter much), what matters is the knowledge/skills which you'll obtain. With that way of thinking I can't see anyone having any motivation finishing anything :)
There was a good solution in the comments somewhere in the thread where they suggested you to take a gap year. It helped me a bunch when I took it. I think I learned in that 1 year more than I did for my entire life. I threw myself at various fields, trying to see which one would fit me the most and just kept working on myself as much as I could.
Now as for actual advice, when it comes to any sort of exam/project/assignment instead of thinking that you HAVE to do something try approaching it as a challenge for yourself. Try to see how well you can perform in a given amount of time with a task that you're assigned. When it comes to finding interest or motivation to study something try to approach it with an open mind and maybe potentially look how you can make money out of it, how is that knowledge applicable in the real world... You get the point. As far as the advice regarding the pursue of education, I'd always tell you to not give up on it and push through unless you made it clear to yourself that you won't ever have anything with that field.
Again, a lot of this is me speaking from my personal experience.
Hope it helped and wish you the best :)
Beauty in the flaw, grace of imperfection.