i understand your concern of becoming uninterested in your surroundings after a while and I appreciate your insight to solve the issue and taking responsibility of it. So, aditya as you said that in the beginning everything seems fine and you perform well in work and then gradually you loose interest.
i would like to suggest you to dig in more into the following:
1. Are you pursuing things which you like the most.
2. What are the things that happen which makes you loose interest.
3. What are your thoughts after making excuses and taking leave.
after you have answers for this and your thoughts are clear as to why it is happening, you can go ahead solving it one by one. It is always preferred for you to seek expert's advice about the concern on the platform so that you get the help more in depth.
Hope you get all the strength to deal with situations..