Where does “ความอัปรีย์” come from?

ความอัปรีย์ (Thai) comes from Thai ความ, from Proto-Tai ɣwaːmᴬ — matter.

Ancestry of “ความอัปรีย์”, step by step

ความอัปรีย์ traces back through two separate lines of ancestry.

via Thai ความ

StepLanguageWordMeaning
1Thaiความaffair; matter; content; essence; subject;...
2Proto-Taiɣwaːmᴬmatter

via Thai อัปรีย์

StepLanguageWordMeaning
1Thaiอัปรีย์bad, wicked, evil; inauspicious, unfortunate,...
2Sanskritअप्रियdisagreeable, unpleasant, etc
Every word from Proto-Tai ɣwaːmᴬEvery word from Thai ความ
ความอัปรีย์ — Etymology, Origin & Word History | Etymology Explorer