Next I would suggest you stop looking for remote jobs and temporary gigs. Those things are only useful when you already have roof over your head and food to eat. Based on maslow hierarchy of needs, your number one focus should be to get roof/food etc. I see you are creating side projects but I would ask you to focus on getting a full time job which can give you reliable salary. This may require mind shift but its not written in stone.
Third thing I would say is that past is gone. Its literally gone, it only exist now in your memory so hopefully you can let go and create path forward. Seems like you are already step ahead because you are taking responsibility for all that has happened. I would also suggest you try to change your environment and get to a bigger city where you can find more jobs and some better city resources.