I would leave and postpone school for my peace of mind
I think it really just comes down to whether or not you can keep doing this with your partners attitude, taking care of your son and then going to school too. You have to be in a somewhat of a clear head space to do good in school. I think if you could persuade your partner to agree to help with your bills etc. so you can, in the future make more money "for the family" then it would be less stressful for you to just stay and better yourself. Maybe even better yalls relationship and if you still want to leave then you're in a better place financially.
I would stick it out and get as much money as I can from assistance the help is out there. look you can put him on child support. Idk where you live but I found a dental program for 12 weeks so 🤷🏻♀️
It depends what you can tolerate. If you can tolerate being an unappreciated free maid and nanny then stay until you graduate. It will be easier to have his income while studying. However if you can't take that, leave. Try to go back home and get help with family, government etc. Yes it will be harder financially but you probably will be happier. The choice is yours
If you are able to stay until school is done, I would recommend that so you’re not overly stressing yourself out by being a full-time parent