Get what you can and get out. If you care about bringing the full product to market, accept that you might need to take less to avoid any clauses limiting your future work.
Depending on the maturity of the company, there are a few different bits of value. Some you can take with you - your product vision - and now build in a linear path towards what brings value. Some things (IP) you won't be able to. But the real value in a company is the existing customers and PMF - if the company is still relatively young, the value you have moving forward is significant.
So just build yourself back up and move on. Try not to hold hate in your heart, it will only set you back. Take care of your mental health, be kind to yourself, and figure out what you would be doing next without worrying about what they're doing - that is for your attorney to handle.