I will say, Bioware from the '90s through KotOR was a lot worse on the bug front than Bioware from Mass Effect onwards. I suspect the Infinity Engine might be part of this (which even KotOR was built on a relative of, IIRC).
KotoR used the Odyssey Engine, which is basically an upgraded Aurora Engine (the first-person, 3D engine that Neverwinter Nights and the first Witcher game used).