Chess takes a lot of energy and concentration, and when I'm feeling depressed, I have neither. So yeah, I'd say there's certainly a correlation between the two. As an experiment, you should try turning off all ratings on Lichess (profile -> preferences -> show player ratings) for awhile, and just play. Rating anxiety could be contributing to your mood.