I do know that the first sentence is true but I am not sure about the second one.
I had never seen the second sentence in dictionaries before.
I found the following sentence in Oxford dictionary :
You cannot say "have difficulty to do sth":
for example you cannot say "I had difficulty to persuade her to leave."
(I am not a teacher.)