OP for what it's worth, I've struggled on and off with depression pretty much my entire life and it took me a while to realize it because I don't have what most would think of as "typical symptoms". I've never been suicidal, etc. But I have had the exact same thing happen to me with studying, and for me it is usually accompanied by negative thoughts and the more I don't study the worse I feel.
You aren't the only one who has experienced this, and for me when it happens the only way to get myself to study is to change my headspace somehow. Sometimes a walk or other physical exercise helps, a call with a friend, etc..but honestly for me most of the time it requires me going to sleep and then waking up at 330 in the morning to study with a fresh mind. Sleeping gets me out of the negative headspace 99% of the time
As you probably thought when you red that, going to sleep and waking up at 330 to study, while somewhat effective, is a horrible coping mechanism.
I went to my school counseling center and they helped a lot, since this post is getting kind of long I won't go into details but if you are interested feel free to PM me.
Also, I think the biggest thing here is that you mentioned you were thinking about going to the school counselor, and since you know you the best, I think you should listen to your instincts. If it ends up not being helpful, no big deal try something else (there are some great mindfulness apps out there)