You are not alone in this. Help is available 24x7 at https://suicidepreventionlifeline.org/
Tech is hard; startups are harder; legal problems are even harder. But these things change, and the feelings can change too. You can PM me if you want to chat.