Looking at the picture of the head which shows the pegs, I would say they were installed poorly and the strings are incorrectly installed, both in terms of the sloppy winding and on the wrong pegs.They also appear to be unevenly spaced.
Some of the holes are too big, as evidenced by the amount of peg extending through the hole and some may be too small, The pegs also look too short to me. They may be drilled in the wrong place.
Some of the string leads are incorrect. They should pull the peg into the hole, not out of it.
See the photos toward the end ofThe Best Way to Change Violin Strings [9 Simple Steps]
I think a complete refit of the pegs is in order, perhaps substituting larger viola pegs for violin pegs.