Where does “ความวิกลจริต” come from?

ความวิกลจริต (Thai) comes from Thai วิกลจริต, from Thai จริต, from Pali carita, from Sanskrit चरित — "idem"; course of life.

Ancestry of “ความวิกลจริต”, step by step

ความวิกลจริต traces back through two separate lines of ancestry.

via Thai วิกลจริต

StepLanguageWordMeaning
1Thaiวิกลจริต(to be) insane, mad
2Thaiจริตnature (of the mind), divided into six types: ราคจริต, โทสจริต, โมหจริต, สัทธาจริต, พุทธิจริต, วิตกจริต
3Palicaritapractice; performance; conduct; deed; action;...
4Sanskritचरित"idem"; course of life

via Thai ความ

StepLanguageWordMeaning
1Thaiความaffair; matter; content; essence; subject;...
2Proto-Taiɣwaːmᴬmatter
Every word from Sanskrit चरितEvery word from Pali caritaEvery word from Thai จริต