Was there any presidents of the United States who faced trouble during their time as president?

Yes. All of them faced some trouble. Think especially about George Washington, Abraham Lincoln, Woodrow Wilson, and Franklin Roosevelt.

Also -- William McKinley who was assassinated.