Do you come out to work to make money or just to survive? In order to survive, you can also find a job near your home and be closer to your relatives and friends. If you can't find a well-paid job when you go home to earn money, I suggest you stick to it, make more friends in new places, communicate more with colleagues and get better gradually.
Work, find problems and solve problems; Is it the skill problem of the job itself that makes you unhappy or the relationship between colleagues unhappy?
If it is a job skill, this is easy to say, just learn it slowly; If it is a colleague relationship, try to improve it, but it will not improve the fact that you want to resign again.
It's really hard to be out alone. I don't know how many times I cried when I first started alone. It will be much better when you are familiar with the environment. Good luck.