Can't help you with the cause of your problem, but you might be able to narrow it down and preserve your settings by copying the program to a backup folder. When the problem comes back swap it out and see if the backup works or has the same problem.
If it works you know it is TWS that is...