It
might be
The Lathe of Heaven, but I'm not certain. Two versions of this have been produced, one in
1980 with Bruce Davison and Kevin Conway and one in
2002 with James Caan, Lukas Haas, Lisa Bonet, and David Straithairn. Both were based on the science fiction novel by Ursula LeGuin.
A synopsis from imdb.com: "George Orr, a man whose dreams can change waking reality, tries to suppress this unpredictable gift with drugs. Dr. Haber, an assigned psychiatrist, discovers the gift to be real and hypnotically induces Mr. Orr to change reality for the benefit of mankind --- with bizarre and frightening results."