Is there any way to prevent them?

The use of support stockings is very helpful. Reducing your weight and regular exercise will also be helpful.