Heart failure is also a common cause because it can create clots in the heart that might be pumped to the brain.