Is it bad luck or bad genes that made me develop arteriovenous malformations?

Answer is complex. Avm are communications which in variable degrees exist in different parts of the body. Most are congenital (you are born with) others can be related to injury or trauma . It also depends how large the avm are and if they cause symptoms besides the esthetic concern.