Can you post a log file?
Something is interfering with your ability to use display capture, and that's usually caused by OBS not running on the right graphics adapter. In this case though, it could be some kind of GPU acceleration conflict (which as far as I know, team viewer doesn't let you turn it off in the recent versions).
Just making sure, with Team Viewer completely closed out, are you able to get a display capture picture?