'на нервной почве' is idiom meaning 'due to bad mental condition'. for example state of strong worry can induce rashes and other bad health conditions.
'soil' of course is incorrect. it's more like '...grounded in bad mental condition'.