Knowledge has to be internalized, transformed into wisdom, not memorized. Brahma is beheaded because he chooses the path of the brahmin (crumpled mind that seeks to dominate others using his knowledge and position) rather than the path of the brahmana (expanded mind that internalizes the Vedas and so feels no urge to dominate).