Are there any narrations discussing the effects on an individual staying home for extended periods of time, as we have been during the lockdowns? Are there any advices on relieving these effects?

Muslims are encouraged to socialize and spend time with one another. Staying alone, eating alone and sleeping alone is makrooh. However for the cause of quarantining and preserving your life and the lives of others, there is no problem.