Wow. She definitely shouldn't have started hugging you.
I think it's AWESOME that you knew that this was an issue for you and you told her about it. You did NOTHING wrong. She isn't skilled enough to help you through this part of the therapy experience, unfortunately.