Former "Silicon Valley" star T.J. Miller has been charged with making a fake bomb threat while traveling on a train headed for New York, the FBI said on Tuesday.

Miller, 36, who played the egotistical tech entrepreneur Erlich Bachman on the HBO satire about the high tech community, could face up to five years in prison if convicted, the FBI and the Connecticut U.S. District Attorney's office said in a statement.

Representatives for Miller, who left the television show last year, did not immediately return a call for comment.