I think that you are mistaking your intentions in your dream.
From what I read, it gave me the impression that you started crying hugging Yui's statue because Minami's wasn't in there. Since your subconcious already recognized the statues as the character they represented it's logical to be sad if your waifu isn't in it.
So hugging Yui, who you yourself admit to feel affection towards, to get emotional support, note how she says "it's okay" as in trying to comfort you. And so you may have felt apretiation towards her in that moment.
I think that you are beating yourself over it because you have high morals about your relation with her and so you are afraid you have done something that could have tarnished your relationship even at a subconcious level.
I think that you should not feel disappointed in yourself, I think that this dream was just an expression of you being sad because you are "missing" her.