The Swede was the only European player not to contribute a point to his team's sensational comeback at Medinah and was left out altogether for Saturday's matches by captain Jose Maria Olazabal.
"The Ryder Cup kind of hurt my confidence a little bit," Hanson told Sky Sports News.
"You're part of a team and when I got notified 20 minutes before we teed off [that I wouldn't play] on Saturday I got very upset.
"I didn't take that very well, but I just locked myself in a dark room and stayed there for a couple of hours."
Hanson began Thursday's Alfred Dunhill Links Championship with an even-par 72 at Carnoustie.