Bones from burial sites of past hunter-gatherer societies are associated with larger jaws and mouths, while bones retrieved from former farming cultures have decreased jaw size. [0]
I believe jaw development has effects on mental health. Thus, I think our non-genetic changes do happen to affect our mental capabilities. There must be other factors than jaw size that do so.
[0] https://en.wikipedia.org/wiki/Human_jaw_shrinkage?wprov=sfti...