When we say your knees give, it means they bend, involuntarily because of a strong feeling.
give に関連して、give way という表現も教わりました。
Normally, small muscles keep our knees straight when we are standing. When a person becomes so overwhelmed with emotion, they cannot even control those small muscles, their knees "give way", which is a means of describing that they bend, causing the person to fall.