-「いつも悩んでいることがあると寝られません。」(※)
General descpription:
"if you have 'いつも悩んでいること', you cannot sleep."
-「いつも悩んでいることがあって寝られません。」
Description about the speaker.
"I have 'いつも悩んでいること' and cannot sleep."
※ example.
「文句ばかり言っていると幸せになれません」
All complaining won't make you happy.