“Now whenever I feel myself craving something, and especially if I allow myself to think thoughts related to it, I feel pain instead of whatever it felt like before. ”
I went through a similar experience, but instead of pain, I felt more of a “depressed” vedana. Even though I wasn’t depressed, but that’s the best way I can describe what I felt.
From what I can diagnose of what happened was that a part of me deep down inside knows this world to be Anicca, Dukkha, Anatta, but because I’m so used to going behind kama raga, another part of me didn’t want to let go. So one part of my gati knows going behind this world is Anicca, Dukkha, Anatta, but another part of my gati (been with me since Sansara) didn’t/doesn’t want to let go of these assada’s. So I was kinda fighting/battling within myself.
During this process, I was probably activating the Akusala-Mula P.S. and that’s probably why I felt this “depressed” vedana. So if one is feeling “pain” or some form of dukkha while one is craving for something, it’s quite possible that one still has avija/moha or tanha for what one is craving for or had activated the Akusala-Mula P.S.