Yes this has happened to me plenty of times. I've always just restarted the game - or my computer if the game was obstinate...
Now I haven't played KotOR 2 in a while, so I don't remember exactly how I fixed it - or if I even bothered to fix it at all. But I read
this thread, and apparently the issue comes from your computer's memory prioritizing graphics over the game's other facets. It hints at upgrading your computer, but I never did that to fix this issue. I guess logically speaking, if you don't want to go through the trouble of upgrading your computer, lowering your game's graphics options should help resolve the issue.