If it's not a very small town, you can always play a sport, exercise, join some clubs, go to meetups, or chill with friends or family. This should also mentally recharge you to be able to study for some time at night. I know that you may have already considered all these options, but my point is that it's possible to fulfill your desire for socialization without necessarily relocating. If these aren't valid options, maybe switching would help.
Btw which MNC is it? Asking cuz I'm looking for remote roles as a frontend dev.