It's not clear whether cavernous malformations can be prevented. They're thought to form due to genes inherited from your parents or genetic changes acquired throughout your life. Researchers are still trying to understand why these changes take place.