Do the following:
Go to the game's folder, should be something like <Steam/SteamLibrary>\steamapps\common\swkotor
Copy or move swkotor.exe and swkotor.ini in the root folder and the streamwaves, Override, modules, and lips folders somewhere outside the Steam folder
You may also want to move the movies folder if that's your only copy of the upscaled videos
In Steam, right click on KOTOR in your Library's game list, then in the pop-up window go to Installed Files and click Verify Integrity of Game Files
Wait for it to finish downloading
Now move back your original files (except the movies folder if you moved that) and overwrite when prompted