I was in one of these for a few months. Strangely enough, changing all my editors color schemes from darkmode to whitemode helped me to overcome it. Over time I went back to darkmode for the most part.
Maybe it is similar to working from a different place? (e.g. coding sitting in park instead of the same old office day-in day-out)