Unfortunately, both KOTOR games, as well as Star Wars: The Old Republic, aren’t canon. Before Disney acquired Star Wars, these games and stories were known as being part of the Star Wars Extended Universe. They’re now referred to as Legends stories, and they don’t exist in the current Canon events of the Star Wars universe.