Dude this almost exactly happened to me about 6-7 years ago. Early thirties, wife came out of the closet after openly cheating for years with anything that moved, no education, 2 kids, I "stayed for the kids", lived with her and girlfriend in a shitty 2 bedroom trailer in a hillbilly trailer park. Shit, I didn't even have a driver's license lol. At least I had a job making a bit over minimum wage.
It was a total cluster fuck and lasted maybe 2-3 months before I moved back in with my folks for a few years to get my life in order. Best time of my fucking life. Lost 200 pounds (Big chunk of the way through losing again, sadly), got my license, got some certifications, got promoted. It's possible to turn this ship around but you need to understand your current situation is extremely temporary. It will implode very, very soon and in likely a very unpleasant way. Start an exit strategy.
Right now start gathering documents you might need if you don't have them; license, social security card or your national equivalent, birth certificate, legal docs you will need to prove you are a real person. Start hiding/gathering whatever cash you can in secret.
You need to move under cover of darkness, a cloak of secrecy about you, and when you finally decide to make a move you must act with full conviction. It's fucked up to say but Sun Tzu was spot on with this shit; "Let your plans be dark and impenetrable as night, and when you move, fall like a thunderbolt." I know that seems hilariously over dramatic but, dawg, your life is about to get way more dramatic than it is even now. Prepare for the worst and hope for the best. To be fore-warned is to be fore-armed. Good luck.